Project

General

Profile

« Previous | Next » 

Revision 27af4444

Added by Ewoud Kohl van Wijngaarden over 10 years ago

Enable installation of plugins

View differences:

manifests/params.pp
$puppet_basedir = '/usr/share/ruby/vendor_ruby/puppet'
$yumcode = "f${::operatingsystemrelease}"
$passenger_scl = undef
$plugin_prefix = 'rubygem-foreman_'
}
default: {
$puppet_basedir = regsubst($::rubyversion, '^(\d+\.\d+).*$', '/usr/lib/ruby/site_ruby/\1/puppet')
$yumcode = regsubst($::operatingsystemrelease, '^(\d+)\..*$', 'el\1')
# add passenger::install::scl as EL uses SCL on Foreman 1.2+
$passenger_scl = 'ruby193'
$plugin_prefix = 'ruby193-rubygem-foreman_'
}
}
}
......
$puppet_basedir = '/usr/lib/ruby/vendor_ruby/puppet'
$apache_conf_dir = '/etc/apache2/conf.d'
$passenger_scl = undef
$plugin_prefix = 'ruby-foreman-'
}
Linux: {
case $::operatingsystem {
......
$yumcode = 'el6'
# add passenger::install::scl as EL uses SCL on Foreman 1.2+
$passenger_scl = 'ruby193'
$plugin_prefix = 'ruby193-rubygem-foreman_'
}
default: {
fail("${::hostname}: This module does not support operatingsystem ${::operatingsystem}")

Also available in: Unified diff