Installs Rancher
documentation for attributes is inline at: attributes/default.rb
Installs Rancher labs server.
Run this on your primary
node.
Installs Rancher labs agent.
Run this on all nodes.
This is mostly used for cookbook development and testing:
$ kitchen converge ubuntu
$ curl localhost:8080
Note: If you have chefdk 0.6.0 you may need to install a newer chef-provisioning
gem to overcome the bug described here. To do this run chef gem install chef-provisioning
.
This will create a two node rancher cluster utilizing the vagrant module for chef provisioning:
$ rake berks
$ rake server agent
$ curl localhost:8080
to access the VMs you need to be in the provision/vms
directory:
$ cd provision/vms
$ vagrant ssh agent
vagrant@agent:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40ce0296df02 rancher/agent:v0.7.9 "/run.sh run" 4 minutes ago Up 4 minutes rancher-agent
to cleanup the VMs run:
$ rake destroy_machines
$ rake publish