hekonsek.tinc-mesh

Ansible Role - Tinc Mesh VPN

This role sets up Tinc VPN in a mesh network, which means every machine is connected to each other. It does the following:

  • Installs Tinc server on all nodes in the cluster.
  • Generates SSH keys on each machine and shares them with all other machines.
  • Installs and enables the Tinc systemd service.

Special thanks to Mitchell Anicas for creating ansible-tinc, which inspired this role.

Compatibility

This playbook has been tested on Fedora 28.

Installation

Run the following command to install:

ansible-galaxy install hekonsek.tinc-mesh,0.0

Example Playbook

Here's how to use the role in a playbook:

- hosts: tinc-mesh-test
  roles:
    - { role: hekonsek.tinc-mesh,0.0 }

Example Inventory File

You can define your machines like this:

[tinc-mesh-test]
machine001 vpn_ip=172.22.1.1 ansible_host=212.47.228.98
machine002 vpn_ip=172.22.1.2 ansible_host=51.15.196.248
machine003 vpn_ip=172.22.1.3 ansible_host=51.16.180.143

License

This role is licensed under Apache 2.0.

Informazioni sul progetto

Provisions Tinc VPN in mesh topology

Installa
ansible-galaxy install hekonsek.tinc-mesh
Licenza
Unknown
Download
79
Proprietario