35 lines
924 B
Terraform
35 lines
924 B
Terraform
|
|
output "droplet_id" {
|
||
|
|
description = "ID of the Forgejo droplet"
|
||
|
|
value = digitalocean_droplet.forgejo.id
|
||
|
|
}
|
||
|
|
|
||
|
|
output "public_ip" {
|
||
|
|
description = "Public IPv4 address of the Forgejo droplet"
|
||
|
|
value = digitalocean_droplet.forgejo.ipv4_address
|
||
|
|
}
|
||
|
|
|
||
|
|
output "private_ip" {
|
||
|
|
description = "Private IPv4 address of the Forgejo droplet (VPC)"
|
||
|
|
value = digitalocean_droplet.forgejo.ipv4_address_private
|
||
|
|
}
|
||
|
|
|
||
|
|
output "urn" {
|
||
|
|
description = "URN of the Forgejo droplet"
|
||
|
|
value = digitalocean_droplet.forgejo.urn
|
||
|
|
}
|
||
|
|
|
||
|
|
output "volume_id" {
|
||
|
|
description = "ID of the Forgejo volume"
|
||
|
|
value = digitalocean_volume.forgejo.id
|
||
|
|
}
|
||
|
|
|
||
|
|
output "volume_name" {
|
||
|
|
description = "Name of the Forgejo volume"
|
||
|
|
value = digitalocean_volume.forgejo.name
|
||
|
|
}
|
||
|
|
|
||
|
|
output "dns_record_fqdn" {
|
||
|
|
description = "FQDN of the DNS record (if managed)"
|
||
|
|
value = var.manage_dns ? digitalocean_record.forgejo[0].fqdn : null
|
||
|
|
}
|