[NO TESTS] WIP

This commit is contained in:
Reid 'arrdem' McKenzie 2024-05-13 22:31:23 -06:00
commit 1ad35f95f1
7 changed files with 57 additions and 14 deletions
projects
gandi
public_dns

View file

@ -4,7 +4,7 @@ py_library(
name = "gandi",
srcs = glob(["src/gandi/client.py"]),
imports = [
"src/python",
"src",
],
deps = [
py_requirement("requests"),

View file

@ -0,0 +1,34 @@
---
gandi:
key: "op://TireFire Heavy Industries/Gandi API key/credential"
meraki:
key: "op://TireFire Heavy Industries/Meraki API/credential"
organization: "op://TireFire Heavy Industries/Meraki API/organization"
network: "op://TireFire Heavy Industries/Meraki API/network"
router_serial: "op://TireFire Heavy Industries/Meraki API/router_serial"
tasks:
# My zones
- template: arrdem.com.j2
zones:
- arrdem.com
- arrdem.me
- reidmckenzie.com
- paren.party
# Parked domains
- template: park.j2
zones: []
- template: tirefireind.us.j2
zones:
- tirefireind.us
- tirefire.industries
bindings:
ttl: 300 # 5min TTL on records
# local:
# public_v4s:
# - 174.51.247.120

View file

@ -22,6 +22,8 @@ relay {{ ttl }} IN A {{ link }}
pxe {{ ttl }} IN A {{ link }}
vpn {{ ttl }} IN A {{ link }}
hass {{ ttl }} IN A {{ link }}
k8s {{ ttl }} IN A {{ link }}
git {{ ttl }} IN A {{ link }}
{% endfor %}
# Secrets service

View file

@ -2,6 +2,8 @@
cd "$(dirname $(realpath "$0"))"
exec bazel run :updater -- \
op inject --in-file ./config.yml.in --out-file ./config.yml
exec bazel run //projects/public_dns:updater -- \
--config $(realpath ./config.yml) \
--templates $(realpath src/resources/zonefiles)