Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Testing Puppet!

eslam
March 22, 2016

Testing Puppet!

Walkthrough different types of tests that can be written and run against puppet code, focusing on integration tests.

eslam

March 22, 2016
Tweet

More Decks by eslam

Other Decks in Technology

Transcript

  1. Agenda • Motivation • Why to test ? • Different

    types of tests • Tools • Demo
  2. Puppet tests •Puppet Lint “Validate Puppet style guidelines” •Validate Syntax

    •puppet parser validate •r10k puppetfile check •erb -x -T '-' template/example.erb| ruby -c •Unit tests “rspec-puppet” •Integration tests!
  3. ServerSpec •http://serverspec.org •RSpec tests for your servers configured by CFEngine,

    Puppet, Ansible, or anything else. •Tests your servers’ actual state by executing command locally, via SSH, Docker API, etc…