Skip to content

Commit

Permalink
Merge pull request ccin2p3#26 from cyberkov/master
Browse files Browse the repository at this point in the history
add config hash to parameters
  • Loading branch information
alexgoodchild committed Mar 5, 2016
2 parents ffd3132 + c41c9bf commit f7c627a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$manage_package = true,
$installdirs = 'site',
$local_lib = false,
$config_hash = { 'build_requires_install_policy' => 'no' },
) {
unless $installdirs =~ /^(perl|site|vendor)$/ {
fail("installdirs must be one of {perl,site,vendor}")
Expand Down
3 changes: 3 additions & 0 deletions templates/Config.pm.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ $CPAN::Config = {
'wget' => q[/usr/bin/wget],
'yaml_load_code' => q[0],
'yaml_module' => q[YAML],
<% @config_hash.each do |k,v| -%>
'<%= k -%>' => 'q[<%= v -%>]',
<% end -%>
};
1;
__END__

0 comments on commit f7c627a

Please sign in to comment.