-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathout.tf
53 lines (47 loc) · 1.69 KB
/
out.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# output "ip_wordpress" {
# description = "The ip address of wordpress container"
# value = docker_container.wordpress.ip_address
# }
#
# output "ip_dbcms" {
# description = "The ip address of Database container"
# value = docker_container.database.ip_address
# }
#output "wordpress-ip-external_port" {
# description = "The ip address of wordpress container"
# value = join(":", [docker_container.wordpress.ip_address, docker_container.wordpress.ports[0].external ])
#}
#
#output "mysql-ip-external_port" {
# description = "The ip address of Database container"
# value = join(":", [docker_container.database.ip_address, docker_container.database.ports[0].external ])
#}
output "database-ip-external_port-name" {
description = "The ip address of Database container"
value = [for i in docker_container.database[*]: join(":", [i.ip_address],i.ports[*]["external"], [i.name])]
}
output "wordpress-ip-external_port-name" {
description = "The ip address of wordpress container"
value = [for i in docker_container.wordpress[*]: join(":", [i.ip_address],i.ports[*]["external"], [i.name])]
}
output "network_info-net_name-net_id" {
description = "value"
value = [for i in docker_network.wp_net[*]: join(":", [i.name], [i.id])]
}
output "dbpwdroot" {
description = ""
value = "${random_string.password.result}_wpss"
}
output "dbpwdmyql" {
description = ""
value = "${random_string.mysqlpass.result}_sqltepwd"
}
#output "container_name" {
# description = "The name of db container"
# value = docker_container.wordpress.name
#}
#
#output "container_name_bd" {
# description = "The name of wordpress container"
# value = docker_container.database.name
#}