Created
September 12, 2013 20:09
-
-
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()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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