Install & configure the Tinc mesh VPN with `pyinfra`.
Project description
pyinfra
Tinc
A pyinfra
deploy that installs & configures the Tinc mesh VPN. Developed & tested with:
- Ubuntu 18/20
- Debian 9/10
- CentOS 7/8
Usage
A default install and configure of a Tinc network is shown below. Each of the three deploy functions is detailed below.
from pyinfra_tinc import configure_tinc, install_tinc, sync_tinc_configurations
SUDO = True
install_tinc(netname='vpn0')
configure_tinc(netname='vpn0')
sync_tinc_configurations(netname='vpn0')
install_tinc
This deploy downloads, compiles & installs the tincd
binary, along with any required deb
/rpm
packages required to do so. This uses the host.data.tinc_version
variable.
configure_tinc
This deploy generates the Tinc configuration directory and files.
sync_tinc_configurations
This deploy syncs the host configuration files to all other hosts, which actually enables the tincd
daemons to connect to each other and form the mesh network.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyinfra_tinc-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 956f60c5c724b69ab38bc15366a38e828c365a25638d49364ae1831fbd155352 |
|
MD5 | 04d26c8b137e146f44d0af1606b36c18 |
|
BLAKE2b-256 | 0e3eb256de973196fffb269c6581d0fbdc1cdde8fc39f55d5f06be53682e29f8 |