-
-
Save rkhatibi/2345614 to your computer and use it in GitHub Desktop.
How to use the same list in puppet for multiple locations
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
$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