Coder Social home page Coder Social logo

kitchen-puppet's Introduction

Kitchen Puppet

Gem Version Gem Downloads Build Status

kitchen-puppet

A Test Kitchen Provisioner for Puppet

The providers supports both puppet apply and puppet agent clients

The PuppetApply provider works by passing the puppet repository based on attributes in .kitchen.yml & calling puppet apply.

The PuppetAgent provider works by passing the puppetmaster and other attributes in .kitchen.yml & calling puppet agent.

This provider has been tested against the Ubuntu 1204 and Centos 6.5 boxes running in vagrant/virtualbox as well as various docker .

Windows Workstation Install

You need to download the puppet msi and install it and run everything inside the puppet window.

  1. Download and install puppet from the windows msi file from https://downloads.puppetlabs.com/windows
  • I recommend the using the 32 bit version as not all ruby gems works with the 64 bit version.
  • Don't do a 'gem install puppet' !!!.
  1. Select "Start Command Prompt with Puppet" to go to a Command Window.

  2. Install the Ruby DevKit:

    • Download and install devkit from http://rubyinstaller.org/downloads
      • (Use a 32 or 64 bit version that matches version of the ruby install)
    • In the devkit directory run “ruby dk.rb init”.
    • Edit the config.yml generated and add the the path of the ruby install for puppet
      • (it will be /sys/ruby).
    • Run “ruby dk.rb install” to bind it to the puppet ruby installation.
  3. From a Command prompt:

  • gem install librarian-puppet
  • gem install test-kitchen
  • gem install kitchen-puppet

Mac-OSX Workstation Install

  1. Download and install the mac packages from https://downloads.puppetlabs.com/mac/
  1. From a Command prompt:
  • gem install librarian-puppet
  • gem install test-kitchen
  • gem install kitchen-puppet

Requirements

You need a metadata.json file of your puppet module. It is used by kitchen-puppet to configure the module path. The puppet docs describe (https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html#write-a-metadatajson-file) how to create one.

You'll need a driver box without a chef installation so puppet can be installed. Puppet have one at http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box or http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box.

For PuppetAgent a server with a puppet master is required that can resolve the hostname ip address of the server. The server must also be able to resolve the hostname ip address of the puppet master.

You can also use the PuppetApply driver with a docker container, provided the necessary box requirements to install puppet are included inside the container. The easiest way to do this is to supply Kitchen-Docker with a custom dockerfile to install the needed dependencies for puppet installation.

Provisioner Options

Please see the Provisioner Options (https://github.com/neillturner/kitchen-puppet/blob/master/provisioner_options.md).

Contributing

To contriubute to the repository, please follow the Fork / PR model:

  1. Fork The Repository
  2. Work on epic changes
  3. Write tests for your changes
  4. Update Documentation
  5. Commit
  6. Push
  7. Create PR
  8. Profit(?)

kitchen-puppet's People

Contributors

arlimus avatar balous avatar benlangfeld avatar ccope avatar chris-rock avatar chrislundquist avatar chrisn777 avatar ehaselwanter avatar grubernaut avatar gsandie avatar jake-minted avatar jlyheden avatar jtopjian avatar looztra avatar neillturner avatar unrealquester 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.