Skip to content

Commit

Permalink
Only install foreman-release-scl on CentOS EL 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Apr 9, 2020
1 parent d33e10c commit 5ed7a7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

# Additional software repos
$configure_epel_repo = ($::osfamily == 'RedHat' and $::operatingsystem != 'Fedora')
# Only configure extra SCL repos on EL
$configure_scl_repo = ($::osfamily == 'RedHat' and $::operatingsystem != 'Fedora')

# Advanced configuration
# this can be a version or nightly
Expand Down Expand Up @@ -108,16 +106,19 @@
$passenger_ruby = undef
$passenger_ruby_package = undef
$plugin_prefix = 'rubygem-foreman_'
$configure_scl_repo = false
} else {
$passenger_ruby = '/usr/bin/tfm-ruby'
$passenger_ruby_package = 'tfm-rubygem-passenger-native'
$plugin_prefix = 'tfm-rubygem-foreman_'
$configure_scl_repo = true
}
}
'Debian': {
$passenger_ruby = '/usr/bin/foreman-ruby'
$passenger_ruby_package = undef
$plugin_prefix = 'ruby-foreman-'
$configure_scl_repo = false
}
'Linux': {
case $::operatingsystem {
Expand All @@ -126,6 +127,7 @@
$passenger_ruby = '/usr/bin/tfm-ruby'
$passenger_ruby_package = 'tfm-rubygem-passenger-native'
$plugin_prefix = 'tfm-rubygem-foreman_'
$configure_scl_repo = true
}
default: {
fail("${::hostname}: This module does not support operatingsystem ${::operatingsystem}")
Expand Down

0 comments on commit 5ed7a7d

Please sign in to comment.