An open API service indexing awesome lists of open source software.

https://github.com/saltstack-formulas/tinc-formula

tinc formula
https://github.com/saltstack-formulas/tinc-formula

Last synced: 10 months ago
JSON representation

tinc formula

Awesome Lists containing this project

README

          

tinc
=========

Formula to set up tinc and manage keys.

.. note::

See the full `Salt Formulas installation and usage instructions
`_.

Available states
================

.. contents::
:local:

``tinc``
-------

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

``tinc.hostsfile``
-------

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

.. code:: yaml

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