Skip to content

Instantly share code, notes, and snippets.

@binford2k
Last active December 24, 2015 08:29
Show Gist options
  • Save binford2k/6770786 to your computer and use it in GitHub Desktop.
Save binford2k/6770786 to your computer and use it in GitHub Desktop.
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