Created
August 3, 2015 15:19
-
-
Save fiddyspence/abe7f4718566ee80693b to your computer and use it in GitHub Desktop.
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
spenceware:~ fids$ puppet --version | |
4.2.1 | |
spenceware:~ fids$ cat test.pp | |
define include($exclude=[]) { | |
if !($name in $exclude) { | |
include $name | |
} | |
} | |
$include = ["one", "two", "three", "four"] | |
$exclude = ["two", "three"] | |
include{$include: exclude => $exclude} | |
class one {} | |
class two {} | |
class three {} | |
class four {} | |
spenceware:~ fids$ puppet apply test.pp | |
Notice: Compiled catalog for spenceware.amers2.ciscloud in environment production in 0.75 seconds | |
Notice: Applied catalog in 0.02 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment