- Removed network, floating IP, volume, firewall, cloud-init (overkill for current setup) - Matched config to actual server: cpx11, ash, krusty-clearnet - Imported existing server (125941041) into Terraform state - Applied labels (project=krustyplanet, role=web) - Added outputs.tf for server_id, ipv4, location - Added .gitignore for tfvars/state/secrets
15 lines
389 B
HCL
15 lines
389 B
HCL
###############################################################################
|
|
# outputs.tf
|
|
###############################################################################
|
|
|
|
output "server_id" {
|
|
value = hcloud_server.krustyplanet.id
|
|
}
|
|
|
|
output "server_ipv4" {
|
|
value = hcloud_server.krustyplanet.ipv4_address
|
|
}
|
|
|
|
output "server_location" {
|
|
value = hcloud_server.krustyplanet.location
|
|
}
|