Last active
December 24, 2015 08:29
-
-
Save binford2k/6770786 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
define booga::booga ( | |
$setting, | |
$another = 'baz', | |
) { | |
# use the variables passed in. $name is a magic variable that comes from the title of the declared resource | |
exec { "/path/to/some/script --enable ${setting} --with-${another} ${name}": } | |
} | |
# declare three copies, identical except for title/name | |
booga::booga { ['one', 'two', 'three']: | |
setting => 'foo', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment