Formula to set up tinc and manage keys.
Note
See the full Salt Formulas installation and usage instructions.
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
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