feat(infra): add nginx node, random password, null_resource automation, and outputs
This commit is contained in:
+20
-4
@@ -1,6 +1,6 @@
|
||||
output "caddy_public_ip" {
|
||||
description = "Public IPv4 address of the Caddy server"
|
||||
value = gridscale_ipv4.public_ipv4.ip
|
||||
value = gridscale_ipv4.public_ipv4_caddy.ip
|
||||
}
|
||||
|
||||
output "monitoring_public_ip" {
|
||||
@@ -8,6 +8,11 @@ output "monitoring_public_ip" {
|
||||
value = gridscale_ipv4.public_ipv4_monitoring.ip
|
||||
}
|
||||
|
||||
output "nginx_public_ip" {
|
||||
description = "Public IPv4 address of the Nginx server"
|
||||
value = gridscale_ipv4.public_ipv4_nginx.ip
|
||||
}
|
||||
|
||||
output "caddy_private_ip" {
|
||||
description = "Private IPv4 address of the Caddy server"
|
||||
value = gridscale_server.server_caddy.network[1].auto_assigned_ip
|
||||
@@ -18,7 +23,18 @@ output "monitoring_private_ip" {
|
||||
value = gridscale_server.server_monitoring.network[1].auto_assigned_ip
|
||||
}
|
||||
|
||||
output "ansible_inventory" {
|
||||
description = "Generated Ansible inventory content"
|
||||
value = local_file.ansible_inventory.content
|
||||
output "nginx_private_ip" {
|
||||
description = "Private IPv4 address of the Nginx server"
|
||||
value = gridscale_server.server_nginx.network[1].auto_assigned_ip
|
||||
}
|
||||
|
||||
|
||||
output "website_urls" {
|
||||
description = "Website URLs"
|
||||
value = [
|
||||
"Caddy: https://caddy.${replace(gridscale_ipv4.public_ipv4_caddy.ip, ".", "-")}.sslip.io",
|
||||
"Nginx behind Caddy: https://nginx.${replace(gridscale_ipv4.public_ipv4_caddy.ip, ".", "-")}.sslip.io",
|
||||
"Prometheus behind Caddy: https://monitoring.${replace(gridscale_ipv4.public_ipv4_caddy.ip, ".", "-")}.sslip.io",
|
||||
"Login for Monitoring: demo ${nonsensitive(random_password.demo_pass.result)}"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user