A manifest with the goal of aiding setup of the Rancher projects.
https://github.com/rancherio/rancher
https://forge.puppetlabs.com/nick/rancher
https://github.com/nickschuch/puppet-rancher-demo
Management node
include rancher::management
Docker Node
rancher::node { 'example_node':
management => '10.0.1.2',
registration_token => '5074AF5E431560691B8F1457978400000:UZRKUYcESSHKpOTERoOPPor7QY',
}
To add a Docker Node on the Management server
rancher::node { 'manager_node':
management => '10.0.1.2',
registration_token => '5074AF5E431560691B8F1457978400000:UZRKUYcESSHKpOTERoOPPor7QY',
docker_env => ["CATTLE_AGENT_IP=${::ipaddress}"]
}
We require the following Puppet modules.
To run the tests:
gem install bundler
bundle install
bundle exec rake test
export BEAKER_destroy=no
bundle exec rspec spec/acceptance
A big thanks goes out to the contributors of the required Puppet modules and also the Rancher team.