openstack-infrastructure-te.../modules/forgejo/outputs.tf

46 lines
1.4 KiB
HCL

output "forgejo_data" {
description = "The input data, re-exported for the dependent workspaces"
value = var.forgejo_data
}
output "forgejo_instance_id" {
value = openstack_compute_instance_v2.forgejo.id
}
output "forgejo_server_name" {
value = openstack_compute_instance_v2.forgejo.name
}
output "forgejo_main_ip" {
description = "Address on the main private network, used by the ansible inventory"
value = var.forgejo_main_ip
}
output "forgejo_postgresql_ip" {
description = "Address on the dedicated network of the database"
value = openstack_networking_port_v2.forgejo_postgresql_port.all_fixed_ips
}
output "forgejo_ssh_port" {
description = "Port of the builtin SSH server, reached through the load balancers"
value = var.forgejo_data.ssh_port
}
output "forgejo_data_volume_id" {
value = openstack_blockstorage_volume_v3.forgejo_data_vol.id
}
output "traffic_to_forgejo_security_group_id" {
value = openstack_networking_secgroup_v2.traffic_to_forgejo.id
}
output "forgejo_hostname" {
description = "Internal name, on the main private network address"
value = openstack_dns_recordset_v2.forgejo_recordset.name
}
output "forgejo_public_hostname" {
description = "Public name, a CNAME of the main load balancer"
value = length(var.forgejo_public_name) > 0 ? openstack_dns_recordset_v2.git_recordset[0].name : ""
}