nilsglow / tinc-formula

tinc formula

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinc

Formula to set up tinc and manage keys.

Available states

Install tinc and related configuration. Add your network name to /etc/tinc/nets.boot to start on system startup.

Also manage /etc/hosts for easy accessing.

To allow multiple network to co-exist, it follows "hostname.netname" format

Example:

192.168.xxx.xxx         replaceWithYourServerName.replaceWithYourNetworkName

Example Pillar

tinc:
  replaceWithYourNetworkName:
    replaceWithYourServerName:
      RSAPublicKey: |
        -----BEGIN RSA PUBLIC KEY-----
        -----END RSA PUBLIC KEY-----
      RSAPrivateKey: |
        -----BEGIN RSA PRIVATE KEY-----
        -----END RSA PRIVATE KEY-----
      host_config:
        Subnet: "192.168.xxx.xxx/xx"
      tinc_config:
        Name: "ifEmptyDefaultTo_replaceWithYourServerName"
        ConnectTo: [ "server1", "server2", "server3" ]
      tinc_up: |
        ifconfig $INTERFACE 192.168.xxx.xxx netmask 255.255.255.0
      tinc_down: |
        ifconfig $INTERFACE down

About

tinc formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:Other


Languages

Language:Shell 78.9%Language:SaltStack 20.4%Language:Clojure 0.7%