Skip to content

Instantly share code, notes, and snippets.

@ccaum
Created September 12, 2013 20:09
Show Gist options
  • Select an option

  • Save ccaum/6543077 to your computer and use it in GitHub Desktop.

Select an option

Save ccaum/6543077 to your computer and use it in GitHub Desktop.
This custom function will return true or false based on whether the puppet run is in noop mode or not. Call in the Puppet DSL with noop()
#Usage: noop() in Puppet DSL. Returns true/false
module Puppet::Parser::Functions
newfunction(:noop, :type => :rvalue) do |args|
Puppet[:noop]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment