sampoz / ansible-role-cjdns

Ansible role to install and manage cjdns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cjdns Ansible Role

Install and configure the cjdns routing daemon.

ansible-galaxy install cornfeedhobo.cjdns

Role Variables

Name Default Value
cjdns_install false
cjdns_package_state "present"
cjdns_packages "{{ __cjdns_packages }}"
cjdns_configure false
cjdns_user "{{ __cjdns_user }}"
cjdns_group "{{ __cjdns_group }}"
cjdns_service false
cjdns_service_name "{{ __cjdns_service_name }}"
cjdns_service_state "started"
cjdns_service_enabled true
cjdns_private_key ""
cjdns_public_key ""
cjdns_ipv6 ""
cjdns_tun_device "tun99"
cjdns_admin_address "127.0.0.1"
cjdns_admin_port "11234"
cjdns_admin_password ""
cjdns_udp_address "{{ ansible_default_ipv4['address'] }}"
cjdns_udp_port "43211"
cjdns_udp_connections {}
cjdns_authorized_passwords []

Dependencies

Example Playbook

- hosts: servers
  roles:
    - role: cornfeedhobo.cjdns
      cjdns_private_key: "..."
      cjdns_public_key: "..."
      cjdns_ipv6: "..."
      cjdns_admin_password: "..."
      cjdns_udp_connections:
        "1.2.3.4:43211":
          password: "..."
          publicKey: "..."
      cjdns_authorized_passwords:
        - login: "..."
          password: "..."

Running tests

You will need molecule and docker runner installed molecule test

Running tests on hetzner

You need the access token configured: export HCLOUD_TOKEN=<yourapitoken>

eg. with fish and pass: export HCLOUD_TOKEN=(pass hetzner/molecule-test-api-key)

Then install the required Python package.

pip3 install molecule-hetznercloud

License

MIT

About

Ansible role to install and manage cjdns

License:MIT License