Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4fd93893ef | |||
d8dd625d3b | |||
f1a03bae87 |
@ -13,12 +13,12 @@ steps:
|
||||
settings:
|
||||
homeserver:
|
||||
from_secret: matrix_homeserver
|
||||
password:
|
||||
from_secret: matrix_password
|
||||
roomid:
|
||||
from_secret: matrix_roomid
|
||||
username:
|
||||
from_secret: matrix_username
|
||||
room_id:
|
||||
from_secret: matrix_room_id
|
||||
user_id:
|
||||
from_secret: matrix_user_id
|
||||
access_token:
|
||||
from_secret: matrix_access_token
|
||||
when:
|
||||
- status: [success, failure]
|
||||
|
||||
|
8
main.tf
8
main.tf
@ -38,7 +38,7 @@ resource "hcloud_server" "server" {
|
||||
backups = try(each.value.backups, false)
|
||||
keep_disk = try(each.value.keep_disk, false)
|
||||
user_data = try(each.value.user_data, null)
|
||||
placement_group_id = each.value.placement_group
|
||||
placement_group_id = try(each.value.placement_group, null)
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
@ -116,7 +116,7 @@ resource "cloudflare_record" "serverv4" {
|
||||
|
||||
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
|
||||
name = each.value.name
|
||||
value = hcloud_server.server[each.value.name].ipv4_address
|
||||
content = hcloud_server.server[each.value.name].ipv4_address
|
||||
type = "A"
|
||||
ttl = 1
|
||||
}
|
||||
@ -126,7 +126,7 @@ resource "cloudflare_record" "serverv6" {
|
||||
|
||||
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
|
||||
name = each.value.name
|
||||
value = hcloud_server.server[each.value.name].ipv6_address
|
||||
content = hcloud_server.server[each.value.name].ipv6_address
|
||||
type = "AAAA"
|
||||
ttl = 1
|
||||
}
|
||||
@ -136,7 +136,7 @@ resource "cloudflare_record" "record" {
|
||||
|
||||
zone_id = each.value.zone_id
|
||||
name = each.value.record_name
|
||||
value = each.value.record_value
|
||||
content = each.value.record_value
|
||||
type = each.value.record_type
|
||||
ttl = each.value.record_ttl
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user