jacoelho.tinc
jacoelho.tinc
An ansible role that installs tinc on Ubuntu.
Tested on ubuntu 14.04 (Trusty), Fedora 24, CentOS7 and RHEL7.
Only tested for L2 mesh setup.
Role Variables
Each tinc configuration is mapped to a variable (see defaults/main.yml)
Generate an tincd key:
tincd -n test -K4096
With this information set tinc_rsa_key
In order to setup a simple point to point vpn, common variables:
tinc_vpn:
- vpn: test #vpn name
name: host1
address: 192.168.205.10 #local adddress
subnet: 172.10.10.10/24 # ip address to use in the vpn interface
public_key: |
-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
- vpn: test
name: host2
address: 192.168.205.11
subnet: 172.10.10.11/24
public_key: |
-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
host1:
tinc_hostname: host1
tinc_rsa_key: |
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
host2:
tinc_hostname: host1
tinc_rsa_key: |
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
Example Playbook
- hosts: servers
roles:
- { role: jacoelho.tinc }
License
BSD
Author Information
This role was created in 2015 by José Coelho
Install
ansible-galaxy install jacoelho.tincLicense
bsd-2-clause
Downloads
83
Owner
