-
Notifications
You must be signed in to change notification settings - Fork 24
/
as3.tf
38 lines (35 loc) · 911 Bytes
/
as3.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
29
30
31
32
33
34
35
36
37
38
#
# Deploy the demo app on the BIG-IP using AS3
#
provider "bigip" {
alias = "bigip1"
address = format("https://%s:%s", module.bigip.mgmt_public_ips[0], module.bigip.mgmt_port)
username = "admin"
password = random_password.password.result
}
provider "bigip" {
alias = "bigip2"
address = format("https://%s:%s", module.bigip.mgmt_public_ips[1], module.bigip.mgmt_port)
username = "admin"
password = random_password.password.result
}
resource "bigip_as3" "as3-demo1" {
provider = bigip.bigip1
as3_json = templatefile(
"${path.module}/as3.tmpl",
{
pool_members = jsonencode(module.nginx-demo-app.private_ips)
}
)
tenant_name = "as3"
}
resource "bigip_as3" "as3-demo2" {
provider = bigip.bigip2
as3_json = templatefile(
"${path.module}/as3.tmpl",
{
pool_members = jsonencode(module.nginx-demo-app.private_ips)
}
)
tenant_name = "as3"
}