Git Product home page Git Product logo

vagrant-playground's Introduction

Installing Foreman and Puppet Agent on Multiple VMs Using Vagrant and VirtualBox

Set up your environment:

  1. Install Virtualbox ("tested" with v5.1.18)
  2. Install Vagrant ("tested" with v1.9.1)
  3. vagrant plugin install vagrant-hostmanger
  4. vagrant plugin install vagrant-vbguest
  5. vagrant plugin install vagrant-triggers
  6. git clone [email protected]:mrwulf/vagrant-playground.git
  7. cd vagrant-playground/Workspace
  8. Clone your puppet repository into Workspace/puppet. For example: hg clone -b production <REPOSITORY-URL> puppet
  9. Clone your hiera repository into Workspace/puppet. For example: hg clone -b hiera <REPOSITORY-URL> hiera
  10. cd ..
  11. vagrant up theforeman.example.com

Iterate

  1. Stand up the server/cluster you're working on.
    • vagrant up cassandra-01.example.com cassandra-02.example.com cassandra-03.example.com
  2. Make changes to puppet/hiera config.
  3. Inspect and run puppet on nodes.
    • vagrant ssh <node>.example.com
    • sudo puppet agent --test
  4. Profit! (Or start node over with vagrant destroy <node>.example.com)

Where Things Are

  • Foreman login:
  • Foreman node definition: /nodes.js
  • Other node definitions: /Workspace/nodes.js
  • Hostgroup definitions: /Workspace/nodes.js

Useful Multi-VM Commands

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

vagrant-playground's People

Contributors

garystafford avatar maier-atix-de avatar mrwulf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.