alexharv074 / puppet-test

The Rspec-puppet and Beaker environment I use for ad hoc Puppet testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puppet test

Usage

To puppet apply a class:

bundle exec puppet apply \
  --modulepath=spec/fixtures/modules \
  --hiera_config=spec/fixtures/hiera/hiera.yml manifests/init.pp

To test a Hiera lookup:

bundle exec puppet lookup \
  --hiera_config=spec/fixtures/hiera/hiera.yaml foo

To run the tests:

bundle exec rake spec_prep
bundle exec rake spec_alone

About

The Rspec-puppet and Beaker environment I use for ad hoc Puppet testing


Languages

Language:Ruby 62.8%Language:Puppet 27.0%Language:Pascal 5.4%Language:HTML 4.8%