Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gandi #679

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions offline/single_hetzner_machine_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,54 @@ List VMs:
sudo virsh list --all
```

### To get a domain for WIAB experimentation

using: https://github.com/Gandi/gandi.cli

```
sudo apt install pipx
pipx install gandi-cli
pipx ensurepath
(logout, log back in)
```

```
gandi setup
```
the API key from the gandi web interface should be entered in the "Api key (rest)" and "Api key (xmlrpc)".

If you need to nuke it, it's stored in ~/.config/gandi/config.yaml

Once this is set up properly, you should be able to "gandi dns list <domain>", for domains you own with gandi.

I then built the following shell script.

domains-kittensonfire.sh
```
#!/bin/bash
domains="nginz-https nginz-ssl webapp assets account teams federator"
sft_domains="sftd"
ipaddr=65.109.105.243

# one of the staging SFT servers.
sft_ipaddr=168.119.168.239

# update the domain itsself
gandi dns update kittensonfire.com -ttl 600 @ A $ipaddr

# update subrecords of kittensonfire.com
for each in $domains; do
gandi dns update kittensonfire.com --ttl 600 $each A $ipaddr
sleep 5
done

# separately update the SFT subrecords of kittensonfire.com
for each in $sft_domains; do
gandi dns update kittensonfire.com --ttl 600 $each A $sft_ipaddr
sleep 5
done
```

### From this point:

switch to docs_ubuntu_22.04.md.
Loading