[NO TESTS] WIP
This commit is contained in:
parent
0ce7e07264
commit
1ad35f95f1
7 changed files with 57 additions and 14 deletions
projects
|
@ -4,7 +4,7 @@ py_library(
|
|||
name = "gandi",
|
||||
srcs = glob(["src/gandi/client.py"]),
|
||||
imports = [
|
||||
"src/python",
|
||||
"src",
|
||||
],
|
||||
deps = [
|
||||
py_requirement("requests"),
|
||||
|
|
34
projects/public_dns/config.yml.in
Normal file
34
projects/public_dns/config.yml.in
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue