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
- Host: GitHub
- URL: https://github.com/saltstack-formulas/tinc-formula
- Owner: saltstack-formulas
- License: other
- Created: 2014-04-23T15:10:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-09T14:01:43.000Z (over 10 years ago)
- Last Synced: 2025-04-07T00:41:35.188Z (10 months ago)
- Language: Shell
- Homepage: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
- Size: 173 KB
- Stars: 12
- Watchers: 40
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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