openstack-infrastructure-te.../s2i2s/project-setup/outputs.tf

180 lines
3.8 KiB
HCL

# Security groups outputs
output "default_security_group" {
value = openstack_networking_secgroup_v2.default
}
output "default_security_group_id" {
value = openstack_networking_secgroup_v2.default.id
}
output "default_security_group_name" {
value = openstack_networking_secgroup_v2.default.name
}
output "access_to_the_jump_proxy" {
value = openstack_networking_secgroup_v2.access_to_the_jump_proxy
}
output "debugging" {
value = openstack_networking_secgroup_v2.debugging
}
output "traffic_from_main_haproxy" {
value = openstack_networking_secgroup_v2.traffic_from_main_haproxy
}
output "public_web" {
value = openstack_networking_secgroup_v2.public_web
}
output "restricted_web" {
value = openstack_networking_secgroup_v2.restricted_web
}
# SSH Jump Proxy outputs
output "ssh_jump_proxy_id" {
value = openstack_compute_instance_v2.ssh_jump_proxy.id
}
output "ssh_jump_proxy_public_ip" {
value = openstack_networking_floatingip_v2.ssh_jump_proxy_ip.address
}
output "ssh_jump_proxy_hostname" {
value = openstack_dns_recordset_v2.ssh_jump_proxy_recordset.name
}
# Internal CA outputs
output "internal_ca_id" {
value = openstack_compute_instance_v2.internal_ca.id
}
# HAProxy L7 outputs
output "main_haproxy_l7_ids" {
description = "IDs of the HAProxy L7 instances"
value = openstack_compute_instance_v2.main_haproxy_l7[*].id
}
output "main_lb_to_haproxy_l7_security_group" {
value = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7
}
# Prometheus outputs
output "prometheus_server_id" {
value = openstack_compute_instance_v2.prometheus_server.id
}
output "prometheus_public_ip" {
value = openstack_networking_floatingip_v2.prometheus_server_ip.address
}
output "prometheus_hostname" {
value = openstack_dns_recordset_v2.prometheus_server_recordset.name
}
output "prometheus_access_from_grafana" {
value = openstack_networking_secgroup_v2.prometheus_access_from_grafana
}
output "haproxy_l7_data" {
value = local.haproxy_l7_data
}
output "prometheus_server_data" {
value = local.prometheus_server_data
}
# Octavia / Load balancer outputs
output "main_loadbalancer_id" {
description = "Main Load balancer ID"
value = openstack_lb_loadbalancer_v2.main_lb.id
}
output "main_loadbalancer_ip" {
description = "Main Load balancer VIP address"
value = openstack_lb_loadbalancer_v2.main_lb.vip_address
}
output "main_loadbalancer_public_ip" {
description = "Main Load balancer floating IP address"
value = openstack_networking_floatingip_v2.main_lb_ip.address
}
output "main_loadbalancer_hostname" {
description = "Main Load balancer DNS hostname"
value = openstack_dns_recordset_v2.main_lb_dns_recordset.name
}
# Re-export common variables for dependent modules
output "dns_zone" {
value = local.dns_zone
}
output "dns_zone_id" {
value = local.dns_zone_id
}
output "main_private_network" {
value = local.main_private_network
}
output "main_private_subnet" {
value = local.main_private_subnet
}
output "main_subnet_network_id" {
value = local.main_private_subnet_id
}
output "basic_services_ip" {
value = local.basic_services_ip
}
output "main_haproxy_l7_ip" {
value = local.main_haproxy_l7_ip
}
output "ssh_sources" {
value = local.ssh_sources
}
output "floating_ip_pools" {
value = local.floating_ip_pools
}
output "ssh_jump_proxy" {
value = local.ssh_jump_proxy
}
output "internal_ca_data" {
value = local.internal_ca_data
}
output "ubuntu_2204" {
value = local.ubuntu_2204
}
output "availability_zones_names" {
value = local.availability_zones_names
}
output "ubuntu2204_data_file" {
value = local.ubuntu2204_data_file
}
output "mtu_size" {
value = local.mtu_size
}
output "main_region" {
value = local.main_region
}
output "resolvers_ip" {
value = local.resolvers_ip
}
output "os_project_data" {
value = local.os_project_data
}