replace hard set ip with vars (#25)

* replace hard set ip with vars

* run all PR checks every time
This commit is contained in:
Rasmus Wejlgaard 2026-03-29 21:33:50 +01:00 committed by GitHub
parent 431c65065a
commit b16f89357b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 3 additions and 31 deletions

View file

@ -2,9 +2,6 @@ name: Lint Ansible
on:
pull_request:
paths:
- 'ansible/**'
- '.github/workflows/lint-ansible.yml'
jobs:
ansible-lint:

View file

@ -1,14 +1,7 @@
name: Lint Docker Compose
on:
push:
paths:
- 'ansible/services/**'
- '.github/workflows/lint-docker-compose.yml'
pull_request:
paths:
- 'ansible/services/**'
- '.github/workflows/lint-docker-compose.yml'
jobs:
compose-lint:

View file

@ -6,10 +6,6 @@ on:
paths:
- 'terraform/**'
- '.github/workflows/terraform.yml'
pull_request:
paths:
- 'terraform/**'
- '.github/workflows/terraform.yml'
# Requires these repository secrets:
# AGE_SECRET_KEY — age private key for SOPS decryption

View file

@ -1,14 +1,7 @@
name: Validate Caddyfile
on:
push:
paths:
- 'ansible/services/caddy/**'
- '.github/workflows/validate-caddyfile.yml'
pull_request:
paths:
- 'ansible/services/caddy/**'
- '.github/workflows/validate-caddyfile.yml'
jobs:
caddy-validate:

View file

@ -1,14 +1,7 @@
name: Validate Terraform
on:
push:
paths:
- 'terraform/**'
- '.github/workflows/validate-terraform.yml'
pull_request:
paths:
- 'terraform/**'
- '.github/workflows/validate-terraform.yml'
jobs:
tofu-validate:

View file

@ -130,7 +130,7 @@ resource "cloudflare_dns_record" "mail-a" {
zone_id = cloudflare_zone.pez-sh.id
name = "mail"
type = "A"
content = "167.235.134.154"
content = hcloud_server.nuremberg-a.ipv4_address
proxied = false
ttl = 1
}
@ -296,7 +296,7 @@ resource "cloudflare_dns_record" "mail-aaaa" {
zone_id = cloudflare_zone.pez-sh.id
name = "mail"
type = "AAAA"
content = "2a01:4f8:1c1e:9c53::1"
content = hcloud_server.nuremberg-a.ipv6_address
proxied = false
ttl = 1
}
@ -382,6 +382,6 @@ resource "cloudflare_dns_record" "root-txt-spf" {
zone_id = cloudflare_zone.pez-sh.id
name = "@"
type = "TXT"
content = "v=spf1 ip4:167.235.134.154 ip6:2a01:4f8:1c1e:9c53::1 -all"
content = "v=spf1 ip4:${hcloud_server.nuremberg-a.ipv4_address} ip6:${hcloud_server.nuremberg-a.ipv6_address} -all"
ttl = 1
}