Compare commits

..

3 Commits
v1.1.1 ... main

Author SHA1 Message Date
4fd93893ef fix: replace deprecated cloudflare_record value with content (#6)
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/build-package Pipeline was successful
Reviewed-on: #6
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2024-08-12 09:50:35 +02:00
d8dd625d3b
ci: fix notification step
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
2024-08-08 09:46:48 +02:00
f1a03bae87 fix: make placement group optional (#5)
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/build-package Pipeline was successful
Reviewed-on: #5
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2024-04-11 21:29:37 +02:00
2 changed files with 10 additions and 10 deletions

View File

@ -13,12 +13,12 @@ steps:
settings: settings:
homeserver: homeserver:
from_secret: matrix_homeserver from_secret: matrix_homeserver
password: room_id:
from_secret: matrix_password from_secret: matrix_room_id
roomid: user_id:
from_secret: matrix_roomid from_secret: matrix_user_id
username: access_token:
from_secret: matrix_username from_secret: matrix_access_token
when: when:
- status: [success, failure] - status: [success, failure]

View File

@ -38,7 +38,7 @@ resource "hcloud_server" "server" {
backups = try(each.value.backups, false) backups = try(each.value.backups, false)
keep_disk = try(each.value.keep_disk, false) keep_disk = try(each.value.keep_disk, false)
user_data = try(each.value.user_data, null) 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 { lifecycle {
ignore_changes = [ ignore_changes = [
@ -116,7 +116,7 @@ resource "cloudflare_record" "serverv4" {
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)] zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
name = each.value.name name = each.value.name
value = hcloud_server.server[each.value.name].ipv4_address content = hcloud_server.server[each.value.name].ipv4_address
type = "A" type = "A"
ttl = 1 ttl = 1
} }
@ -126,7 +126,7 @@ resource "cloudflare_record" "serverv6" {
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)] zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
name = each.value.name name = each.value.name
value = hcloud_server.server[each.value.name].ipv6_address content = hcloud_server.server[each.value.name].ipv6_address
type = "AAAA" type = "AAAA"
ttl = 1 ttl = 1
} }
@ -136,7 +136,7 @@ resource "cloudflare_record" "record" {
zone_id = each.value.zone_id zone_id = each.value.zone_id
name = each.value.record_name name = each.value.record_name
value = each.value.record_value content = each.value.record_value
type = each.value.record_type type = each.value.record_type
ttl = each.value.record_ttl ttl = each.value.record_ttl
} }