2020-10-12 14:54:47 +08:00
|
|
|
# If k8s_master_fips is already defined as input, keep the same value since new FIPs have not been created.
|
2017-12-05 20:48:47 +08:00
|
|
|
output "k8s_master_fips" {
|
2020-10-12 14:54:47 +08:00
|
|
|
value = length(var.k8s_master_fips) > 0 ? var.k8s_master_fips : openstack_networking_floatingip_v2.k8s_master[*].address
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
|
|
|
|
2022-05-03 23:51:56 +08:00
|
|
|
output "k8s_masters_fips" {
|
|
|
|
value = openstack_networking_floatingip_v2.k8s_masters
|
|
|
|
}
|
|
|
|
|
2020-10-12 14:54:47 +08:00
|
|
|
# If k8s_master_fips is already defined as input, keep the same value since new FIPs have not been created.
|
2019-04-29 13:58:20 +08:00
|
|
|
output "k8s_master_no_etcd_fips" {
|
2020-10-12 14:54:47 +08:00
|
|
|
value = length(var.k8s_master_fips) > 0 ? var.k8s_master_fips : openstack_networking_floatingip_v2.k8s_master_no_etcd[*].address
|
2019-04-29 13:58:20 +08:00
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
output "k8s_node_fips" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = openstack_networking_floatingip_v2.k8s_node[*].address
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
|
|
|
|
2020-04-16 22:52:45 +08:00
|
|
|
output "k8s_nodes_fips" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = openstack_networking_floatingip_v2.k8s_nodes
|
2020-04-16 22:52:45 +08:00
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
output "bastion_fips" {
|
2021-11-19 23:58:52 +08:00
|
|
|
value = length(var.bastion_fips) > 0 ? var.bastion_fips : openstack_networking_floatingip_v2.bastion[*].address
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|