This is a fork of the Freifunk Braunschweig ansible repository. See https://gitli.stratum0.org/ffbs/ffbs-ansible
-
Create an inventory file
ffmuc-inventory
with the parker gateway at 192.168.0.2. For example:[Backbone] parker-vm01 ansible_host=192.168.0.2 [etcd_cluster] parker-vm01 ansible_host=192.168.0.2 [etcd_clients] parker-vm01 ansible_host=192.168.0.2 [Concentrators] parker-vm01 ansible_host=192.168.0.2
-
Generate a new wireguard keypair and add them to parker-vm01/vars
privkey=$(wg genkey) pubkey=$(wg pubkey <<< ${privkey}) echo "wg_private_key: '${privkey}'" echo "wg_public_key: '${pubkey}'"
-
Generate custom certificates:
./etcd-ca/openssl-ca.sh
-
Create a
.vault
file containing the password that was used for the custom certificates:echo "mypassword" > .vault
-
Generate a new node-config keypair
./node-config-keygen.sh
-
Run the playbook:
ansible-playbook -v -i ffmuc-inventory playbook-ffmuc.yml