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: on:
pull_request: pull_request:
paths:
- 'ansible/**'
- '.github/workflows/lint-ansible.yml'
jobs: jobs:
ansible-lint: ansible-lint:

View file

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

View file

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

View file

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

View file

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

View file

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