Our SOE document states that all repositories should be *disabled* by default and enabled on installing a package. So when we write modules our package resource more or less looks like this:
package { $package_name: ensure => "${package_version}-${release_version}", install_options => [ {'--disablerepo' => "*"}, { '--enablerepo' => "$releases_repo" } ], notify => Class['::apache::service'], } In our base profile (which is included in every role) a module ensures that all repos are disabled. However this has proven to be a problem when using forge modules where it seems to expect the repositories will be enabled by default. One untested suggestion was to use the package resource default statement and set the install option to enable the repositories. Example shown below: class profiles::phpwebserver { Package{ install_options => [ {'--disablerepo' => "*"}, { '--enablerepo' => "*" } ], } $apache_template_file = hiera('apache::template_file') class { '::apache': default_vhost => false, conf_template => "apache/${apache_template_file}", service_name => 'httpd', package_ensure => hiera('apache::version'), service_enable => true, service_ensure => 'running', } class {'::apache::mod::php': package_name => 'php', package_ensure => hiera('apache::mod::php::version'), path => "${::apache::params::lib_path}/libphp54-php5.so", } contain ::apache contain ::apache::mod::php } I'm not even sure if it will work considering it is outside the scope of the httpd class. I can't be the only one who has run into this issue so I'm hoping someone can provide a sane solution. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e4d8f644-2933-4392-9b29-ee3ec90b0abf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.