[NO TESTS] WIP
This commit is contained in:
parent
0ce7e07264
commit
1ad35f95f1
7 changed files with 57 additions and 14 deletions
24
WORKSPACE
24
WORKSPACE
|
@ -41,9 +41,13 @@ git_repository(
|
||||||
name = "rules_python",
|
name = "rules_python",
|
||||||
remote = "https://github.com/bazelbuild/rules_python.git",
|
remote = "https://github.com/bazelbuild/rules_python.git",
|
||||||
# tag = "0.4.0",
|
# tag = "0.4.0",
|
||||||
commit = "693a1587baf055979493565933f8f40225c00c6d",
|
commit = "5f51a4451b478c5fed491614756d16745682fd7c",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
load("@rules_python//python:repositories.bzl", "py_repositories")
|
||||||
|
|
||||||
|
py_repositories()
|
||||||
|
|
||||||
register_toolchains("//tools/python:python3_toolchain")
|
register_toolchains("//tools/python:python3_toolchain")
|
||||||
|
|
||||||
# pip package pinnings need to be initialized.
|
# pip package pinnings need to be initialized.
|
||||||
|
@ -62,14 +66,14 @@ load("@arrdem_source_pypi//:requirements.bzl", "install_deps")
|
||||||
# Call it to define repos for your requirements.
|
# Call it to define repos for your requirements.
|
||||||
install_deps()
|
install_deps()
|
||||||
|
|
||||||
# git_repository(
|
git_repository(
|
||||||
# name = "rules_zapp",
|
|
||||||
# remote = "https://git.arrdem.com/arrdem/rules_zapp.git",
|
|
||||||
# commit = "961be891e5cff539e14f2050d5cd9e82845ce0f2",
|
|
||||||
# # tag = "0.1.2",
|
|
||||||
# )
|
|
||||||
|
|
||||||
local_repository(
|
|
||||||
name = "rules_zapp",
|
name = "rules_zapp",
|
||||||
path = "/home/arrdem/Documents/hobby/programming/rules_zapp",
|
remote = "https://git.arrdem.com/arrdem/rules_zapp.git",
|
||||||
|
commit = "961be891e5cff539e14f2050d5cd9e82845ce0f2",
|
||||||
|
# tag = "0.1.2",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# local_repository(
|
||||||
|
# name = "rules_zapp",
|
||||||
|
# path = "/home/arrdem/Documents/hobby/programming/rules_zapp",
|
||||||
|
# )
|
||||||
|
|
|
@ -4,7 +4,7 @@ py_library(
|
||||||
name = "gandi",
|
name = "gandi",
|
||||||
srcs = glob(["src/gandi/client.py"]),
|
srcs = glob(["src/gandi/client.py"]),
|
||||||
imports = [
|
imports = [
|
||||||
"src/python",
|
"src",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
py_requirement("requests"),
|
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 }}
|
pxe {{ ttl }} IN A {{ link }}
|
||||||
vpn {{ ttl }} IN A {{ link }}
|
vpn {{ ttl }} IN A {{ link }}
|
||||||
hass {{ ttl }} IN A {{ link }}
|
hass {{ ttl }} IN A {{ link }}
|
||||||
|
k8s {{ ttl }} IN A {{ link }}
|
||||||
|
git {{ ttl }} IN A {{ link }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
# Secrets service
|
# Secrets service
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
cd "$(dirname $(realpath "$0"))"
|
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) \
|
--config $(realpath ./config.yml) \
|
||||||
--templates $(realpath src/resources/zonefiles)
|
--templates $(realpath src/resources/zonefiles)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# But ... that's exactly what we want to do.
|
# But ... that's exactly what we want to do.
|
||||||
# So this script exists to find a 'compliant' Python install and use that.
|
# So this script exists to find a 'compliant' Python install and use that.
|
||||||
|
|
||||||
PYTHONREV="3.11"
|
PYTHONREV="3.12"
|
||||||
CMD="python${PYTHONREV}"
|
CMD="python${PYTHONREV}"
|
||||||
|
|
||||||
if [ -x "$(command -v "$CMD")" ]; then
|
if [ -x "$(command -v "$CMD")" ]; then
|
||||||
|
|
|
@ -55,3 +55,4 @@ yamllint
|
||||||
yaspin
|
yaspin
|
||||||
pytimeparse
|
pytimeparse
|
||||||
git+https://github.com/arrdem/jaraco.text.git@0dd8d0b25a93c3fad896f3a92d11caff61ff273d#egg=jaraco.text
|
git+https://github.com/arrdem/jaraco.text.git@0dd8d0b25a93c3fad896f3a92d11caff61ff273d#egg=jaraco.text
|
||||||
|
onepasswordconnectsdk
|
||||||
|
|
Loading…
Reference in a new issue