Skip to content

Commit

Permalink
adding dic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
papineni87 committed Oct 23, 2020
1 parent bb8dede commit c7d4ce3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
2 changes: 2 additions & 0 deletions website/docs/r/bigip_ltm_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ description: |-

# bigip\_ltm\_node

This resource will be depreceated in future releases, use bigip_ltm_pool_attachment resource to create and manage node membership in pools.

`bigip_ltm_node` Manages a node configuration

For resources should be named with their "full path". The full path is the combination of the partition + name of the resource. For example /Common/my-pool.
Expand Down
44 changes: 38 additions & 6 deletions website/docs/r/bigip_ltm_pool_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,43 @@ description: |-

## Example Usage


There are two ways to use ltm_pool_attachment resource, where we can take node reference from ltm_node or we can specify node directly with ip:port/fqdn:port which will also create node and atach to pool.


Pool attachment with node reference from ltm_node

```hcl
resource "bigip_ltm_monitor" "monitor" {
name = "/Common/terraform_monitor"
parent = "/Common/http"
send = "GET /some/path\r\n"
timeout = "999"
interval = "998"
}
resource "bigip_ltm_pool" "pool" {
name = "/Common/terraform-pool"
load_balancing_mode = "round-robin"
monitors = ["${bigip_ltm_monitor.monitor.name}"]
allow_snat = "yes"
allow_nat = "yes"
}
resource "bigip_ltm_node" "node" {
name = "/Common/terraform_node"
address = "192.168.30.2"
}
resource "bigip_ltm_pool_attachment" "attach_node" {
pool = bigip_ltm_pool.pool.name
node = "${bigip_ltm_node.node.name}:80"
}
```


Pool attachment with node directly taking ip:port/fqdn:port


```hcl
resource "bigip_ltm_monitor" "monitor" {
name = "/Common/terraform_monitor"
Expand All @@ -31,11 +68,6 @@ resource "bigip_ltm_pool" "pool" {
resource "bigip_ltm_pool_attachment" "attach_node" {
pool = bigip_ltm_pool.pool.name
node = "1.1.1.1:80"
ratio = 2
connection_limit = 2
connection_rate_limit = 2
priority_group = 2
dynamic_ratio = 3
}
```
Expand Down Expand Up @@ -64,4 +96,4 @@ An existing pool attachment (i.e. pool membership) can be imported into this res
```sh
$ terraform import bigip_ltm_pool_attachment.node-pool-attach \
'{"pool": "/Common/terraform-pool", "node": "/Common/node1:80"}'
```
```

0 comments on commit c7d4ce3

Please sign in to comment.