Skip to content

Instantly share code, notes, and snippets.

@trlinkin
Last active November 30, 2015 18:56
Show Gist options
  • Select an option

  • Save trlinkin/534be912bcf1cb23d210 to your computer and use it in GitHub Desktop.

Select an option

Save trlinkin/534be912bcf1cb23d210 to your computer and use it in GitHub Desktop.
Simple Boilerplate Rakefile for Puppet Module testing
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
desc "Validate Puppefile with R10k"
task :puppetfile do
begin
require 'r10k'
sh "r10k puppetfile check"
rescue LoadError => e
warn "Skipping Puppetfile validation; the r10k gem was not found"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment