EugenMayer / chef-tinc-cookbook

Chef cookbook for creating tinc vpn networks
MIT License
4 stars 3 forks source link
chef chef-cookbook tiny vpn

Build Status

Description

Installs tinc vpn for meshed VPN networks.

All you need is deploying this cookbook on several nodes while using the same network name - the connection between those nodes (hosts) will be configured automatically (published hosts/ with public keys)

Available on the chef supermarket

Requirements

Platform:

Cookbooks:

Attributes

See tincvpn.rb for the available attributes and how to use them

Recipes

tincvpn::default

Installs tinc and configure all your hosts and networks. Hosts are actually looked up using a node search, picking all nodes having the same network deployed

Release

bundle install --binstubs --without='development vagrant docker dokken integration' 
./bin/stove login --username <user>--key ~/.ssh/key.pem
# edit metadata.rb and release
./bin/stove 

Tests

You can run the test using kitchen

# vagrant basesed 
chef exec bundle exec kitchen test

# dokken based
export KITCHEN_YAML=.kitchen.dokken.yml
chef exec bundle exec kitchen test

# dokken based - just the default suite
export KITCHEN_YAML=.kitchen.dokken.yml
chef exec bundle exec kitchen test default

# docker based
export KITCHEN_YAML=.kitchen.docker.yml
chef exec bundle exec kitchen test           

There are to test suites, default for testing anything with router mode and switch to ensure we can set the mode properly/

Contributions

I am very happy to accept this PRs or work on issues to extend the usage of this cookbook.

Just use the issue queue or even better, create pull requests for what you like to improve.

License and Maintainer

Maintainer::

License:: Apache 2.0