Set up your environment:
- Install Virtualbox ("tested" with v5.1.18)
- Install Vagrant ("tested" with v1.9.1)
vagrant plugin install vagrant-hostmanger
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-triggers
git clone git@github.com:mrwulf/vagrant-playground.git
cd vagrant-playground/Workspace
- Clone your puppet repository into Workspace/puppet. For example:
hg clone -b production <REPOSITORY-URL> puppet
- Clone your hiera repository into Workspace/puppet. For example:
hg clone -b hiera <REPOSITORY-URL> hiera
cd ..
vagrant up theforeman.example.com
- Stand up the server/cluster you're working on.
vagrant up cassandra-01.example.com cassandra-02.example.com cassandra-03.example.com
- Make changes to puppet/hiera config.
- Inspect and run puppet on nodes.
vagrant ssh <node>.example.com
sudo puppet agent --test
- Profit! (Or start node over with
vagrant destroy <node>.example.com
)
- Foreman login:
- https://theforeman.example.com/
- admin/admin
- Foreman node definition: /nodes.js
- Other node definitions: /Workspace/nodes.js
- Hostgroup definitions: /Workspace/nodes.js
The use of the specific name is optional in most cases.
vagrant halt
vagrant up <machine>
vagrant reload <machine>
vagrant destroy -f <machine> && vagrant up <machine>
vagrant status <machine>
vagrant ssh <machine>
vagrant global-status