-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbigip_test_vs_fastl4.tf
28 lines (23 loc) · 1011 Bytes
/
bigip_test_vs_fastl4.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# FastL4 virtual server configuration
resource "bigip_ltm_virtual_server" "terraform_test_vs_fastl4" {
name = "/Common/terraform_test_vs_fastl4"
destination = "10.0.0.102"
description = "Terraform Test FastL4 Virtual Server"
port = 80
pool = bigip_ltm_pool.terraform_test_pool_fastl4.name
source_address_translation = "automap"
}
# FastL4 pool configuration
resource "bigip_ltm_pool" "terraform_test_pool_fastl4" {
name = "/Common/terraform_test_pool_fastl4"
load_balancing_mode = "round-robin"
description = "Terraform Test FastL4 Pool"
monitors = ["/Common/tcp_half_open"]
allow_snat = "yes"
allow_nat = "yes"
}
# FastL4 node/pool attachment
resource "bigip_ltm_pool_attachment" "terraform_test_node_attach_fastl4" {
pool = bigip_ltm_pool.terraform_test_pool_fastl4.name
node = "${bigip_ltm_node.terraform_test_node.name}:80"
}