Skip to content

Commit bc7b01c

Browse files
committed
init w/ hetzner
1 parent 353b62c commit bc7b01c

File tree

6 files changed

+72
-15
lines changed

6 files changed

+72
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
force:
7-
description: 'Use --force flag'
7+
description: "Use --force flag"
88
required: false
99
type: boolean
1010
default: false
@@ -19,12 +19,11 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5
2121
with:
22-
python-version: '3'
22+
python-version: "3"
2323
cache: "pip" # caches pip dependencies
2424
- name: Install OctoDNS
2525
run: pip install 'octodns==0.9.10'
2626
- name: Sync w/ production DNS providers
2727
run: ./bin/sync ${{ inputs.force && '--force' || '' }}
2828
env:
29-
# DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
30-
# DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
29+
HETZNER_KEY: ${{ secrets.HETZNER_KEY }}

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Dry Run DNS
22

3-
on:
3+
on:
44
- push
55
- pull_request
66
- workflow_dispatch:
77
inputs:
88
force:
9-
description: 'Use --force flag'
9+
description: "Use --force flag"
1010
required: false
1111
type: boolean
1212
default: false
@@ -18,12 +18,11 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-python@v5
2020
with:
21-
python-version: '3'
21+
python-version: "3"
2222
cache: "pip" # caches pip dependencies
2323
- name: Install OctoDNS
2424
run: pip install 'octodns==0.9.10'
2525
- name: Do a dry run
2626
run: ./bin/dry-run ${{ inputs.force && '--force' || '' }}
2727
env:
28-
# DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
29-
# DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
28+
HETZNER_KEY: ${{ secrets.HETZNER_KEY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.env
2+
venv
3+
tmp

config/main.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
22
providers:
3-
# default_ttl: 600
4-
5-
processors:
6-
spf:
7-
class: octodns.processor.spf.SpfDnsLookupProcessor
3+
config:
4+
class: octodns.provider.yaml.YamlProvider
5+
directory: ./
6+
enforce_order: True
7+
default_ttl: 600
8+
hetzner:
9+
class: octodns_hetzner.HetznerProvider
10+
token: env/HETZNER_KEY
811

912
zones:
10-
patchworklabs.org:
13+
patchworklabs.org.:
14+
sources:
15+
- config
16+
targets:
17+
- hetzner

patchworklabs.org.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"":
2+
- ttl: 1
3+
type: MX
4+
values:
5+
- exchange: aspmx.l.google.com.
6+
preference: 1
7+
- exchange: alt1.aspmx.l.google.com.
8+
preference: 5
9+
- exchange: alt2.aspmx.l.google.com.
10+
preference: 5
11+
- exchange: alt3.aspmx.l.google.com.
12+
preference: 10
13+
- exchange: alt4.aspmx.l.google.com.
14+
preference: 10
15+
- ttl: 1
16+
type: TXT
17+
values:
18+
- google-site-verification=dTZpncFCw29CV7tXrZ7O9zUfq0wVPWkdAcUT6j7_vQ4
19+
- openpgp4fpr:00E643C21FAC965FFB28D3B714D0D45A1DADAAFA
20+
- Owned by Jasper Mayone (jaspermayone.com)
21+
22+
_dmarc:
23+
ttl: 1
24+
type: TXT
25+
value: v=DMARC1\; p=quarantine\; rua=mailto:[email protected]\; pct=100\; ruf=mailto:[email protected]\; adkim=s\; aspf=s
26+
27+
openpgpkey:
28+
ttl: 300
29+
type: CNAME
30+
value: wkd.keys.openpgp.org.
31+
32+
_atproto:
33+
ttl: 1
34+
type: TXT
35+
value: did=did:plc:bpd7j2a34mmnyu7t64gzptg7

requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
certifi==2024.7.4
2+
charset-normalizer==3.3.1
3+
dnspython==2.6.1
4+
fqdn==1.5.1
5+
idna==3.7
6+
natsort==8.4.0
7+
python-dateutil==2.8.2
8+
PyYAML==6.0.1
9+
requests==2.32.2
10+
six==1.16.0
11+
urllib3==2.2.2
12+
octodns==1.11.0
13+
octodns-spf==0.0.2
14+
octodns-hetzner==0.0.1

0 commit comments

Comments
 (0)