Demo of an MCollective setup with Chef Server.
To bring up a cluster with an MCollective Server, Chef Server and a node :
rake
To run the tests:
rake test
To start from scratch and try again:
rake destroy
Access Chef web management UI via:
https://172.18.1.6
with the username vagrant
and password vagrant
To display the list of instance names:
rake list
To login to an instance, use kitchen login <instance_name
, such as:
kitchen login mcollective-admin-centos65
2GB free memory for the instances:
- MCollective Admin Instance - 512MB
- Chef Server - 1.5GB
- Node managed by Chef - 512MB
Clone this repository:
git clone https://github.com/misheska-cookbooks/demo-mcollective
Install the Chef Development Kit for your platform.
Install the following virtualization software:
[VirtualBox](https://www.virtualbox.org/wiki/Downloads)
[Vagrant](https://www.vagrantup.com/downloads.html)
List all the tasks with rake -T
rake converge
# run cookbooks against instancesrake create
# create instancesrake default
# create clusterrake destroy
# destroy instancesrake list
# list instancesrake spec
# Run ChefSpec examplesrake style
# Run all style checksrake style:chef
# Lint Chef cookbooksrake style:ruby
# Run Ruby style checksrake test
# serverspec testsrake verify
# verify instances
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request