Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 1.57 KB

File metadata and controls

78 lines (62 loc) · 1.57 KB

Testing with Vagrant

Prerequisites

Install the gems dependencies

To install the project gems dependencies use bundler

localhost$bundle install 

Install the puppet forge modules

This vagrant environment use some puppet modules from puppetforge.

We use r10k to install all the required modules.

Use the following rake task to install the required modules.

localhost$rake r10k:install

Start the Vagrant environment

The vagrant configuration is on tools/vagrant directory.

To start it:

localhost$cd tools/vagrant
localhost$vagrant up 

After it finishes, open http://localhost:8080 on your web browser.

Login: vagrant@example.com

Password: vagrant123

Some common Vagrant Commands

  • start the virtual machines
localhost$vagrant up 
  • destroy the virtual machines
localhost$vagrant destroy 
  • status of the virtual machines
localhost$vagrant status 
  • ssh into machines,
localhost$vagrant ssh mcomaster
localhost$vagrant ssh middleware
localhost$vagrant ssh mcserver2
localhost$vagrant ssh mcserver1
  • run puppet against one machine
localhost$vagrant provision mcomaster