Coder Social home page Coder Social logo

ansible.tinc's Introduction

jacoelho.tinc

An ansible role that installs tinc on Ubuntu.

Tested on ubuntu 14.04 (Trusty)

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-----

Dependencies

python module netaddr is needed where playbook is going to run.

Example Playbook

- hosts: servers
  roles:
    - { role: jacoelho.tinc }

License

BSD

Author Information

This role was created in 2015 by José Coelho

ansible.tinc's People

Contributors

jacoelho avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.