Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.14 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.14 KB

Ansible for Parker

This is a fork of the Freifunk Braunschweig ansible repository. See https://gitli.stratum0.org/ffbs/ffbs-ansible

How to run it

  1. 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
  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}'"
  3. Generate custom certificates:

     ./etcd-ca/openssl-ca.sh
  4. Create a .vault file containing the password that was used for the custom certificates:

    echo "mypassword" > .vault
  5. Generate a new node-config keypair

    ./node-config-keygen.sh
  6. Run the playbook:

    ansible-playbook -v -i ffmuc-inventory playbook-ffmuc.yml