Skip to content

Instantly share code, notes, and snippets.

@rkhatibi
Forked from ranguard/gist:2345549
Created April 9, 2012 19:05
Show Gist options
  • Save rkhatibi/2345614 to your computer and use it in GitHub Desktop.
Save rkhatibi/2345614 to your computer and use it in GitHub Desktop.
How to use the same list in puppet for multiple locations
$perl_modules = [ 'Data::Pageset', 'perl-module-b' ]
perlbrew::install_modules {
$perl_modules:
perl => 'a-version-of-perl'
}
perlbrew::install_modules {
$perl_modules:
perl => 'a-different-version-of-perl'
}
# or even something like
perlbrew::install_modules {
'some-name-1':
perl => "a-version-of-perl",
toinstall => $perl_modules,
}
perlbrew::install_modules {
'some-name-2':
perl => "a-second-of-perl",
toinstall => $perl_modules,
}
but it's then how to go through the list and merge with the 'perl'
to create a unique identifier which can be passed to a method
along with the module name that I'm not sure on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment