Skip to content

Instantly share code, notes, and snippets.

@ahpook
Created June 4, 2015 05:23
Show Gist options
  • Save ahpook/d486b5d304b028211ac6 to your computer and use it in GitHub Desktop.
Save ahpook/d486b5d304b028211ac6 to your computer and use it in GitHub Desktop.
$binaries = ["cfacter", "facter", "hiera", "mco", "puppet", "puppetserver"]
# function call with lambda:
$binaries.each |String $binary| {
file {"/usr/bin/$binary":
ensure => link,
target => "/opt/puppetlabs/bin/$binary",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment