forked from tjheeta/ansible-tinc-role
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Sets up tinc as a mesh network. It will setup all ip addresses and setup hosts file entries. For instance, if tinc_netname is mesh, all the nodes will have entries host1.mesh, host2.mesh, etc. Also, for a private mesh, you can specify multiple entries of tinc_connectto. | ||
|
||
Requirements: | ||
|
||
python-netaddr must be installed | ||
|
||
Runit must be installed either manually or through a package or precompiled binaries: | ||
https://github.com/tjheeta/ansible-runit-role | ||
|
||
Variables: | ||
|
||
``` | ||
tinc_netname: mesh # what the domainname that hostsfile will refer to | ||
tinc_connectto: # what public hosts that can be connected to | ||
publichost1: 1.2.3.4 | ||
publichost2: 1.2.3.5 | ||
tinc_subnet: 10.11.0.0/24 # what public hosts that can be connected to | ||
tinc_port: 2005 # tinc port | ||
tinc_state: present # whether this mesh name is present or not | ||
tinc_static_binary: true # whether to use the included binaries | ||
``` | ||
|