mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
replace hard set ip with vars (#25)
* replace hard set ip with vars * run all PR checks every time
This commit is contained in:
parent
431c65065a
commit
b16f89357b
6 changed files with 3 additions and 31 deletions
3
.github/workflows/lint-ansible.yml
vendored
3
.github/workflows/lint-ansible.yml
vendored
|
|
@ -2,9 +2,6 @@ name: Lint Ansible
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'ansible/**'
|
||||
- '.github/workflows/lint-ansible.yml'
|
||||
|
||||
jobs:
|
||||
ansible-lint:
|
||||
|
|
|
|||
7
.github/workflows/lint-docker-compose.yml
vendored
7
.github/workflows/lint-docker-compose.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
4
.github/workflows/terraform.yml
vendored
4
.github/workflows/terraform.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
7
.github/workflows/validate-caddyfile.yml
vendored
7
.github/workflows/validate-caddyfile.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
7
.github/workflows/validate-terraform.yml
vendored
7
.github/workflows/validate-terraform.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue