Project

General

Profile

« Previous | Next » 

Revision a53df036

Added by Ewoud Kohl van Wijngaarden about 4 years ago

Move Ruby package prefix to params

Rather than redefining the package prefix, this introduces the variable
in params.pp.

View differences:

manifests/plugin/remote_execution/ssh.pp
$ssh_identity_path = "${ssh_identity_dir}/${ssh_identity_file}"
include foreman_proxy::params
include ::foreman_proxy::plugin::dynflow
foreman_proxy::plugin { 'remote_execution_ssh':
......
}
if $ssh_kerberos_auth {
if $::osfamily == 'RedHat' {
if versioncmp($facts['operatingsystemmajrelease'], '8') >= 0 {
$ruby_prefix = 'rubygem'
} else {
$ruby_prefix = 'tfm-rubygem'
}
} else {
$ruby_prefix = 'ruby'
}
$kerberos_pkg = "${ruby_prefix}-net-ssh-krb"
$kerberos_pkg = "${foreman_proxy::params::ruby_package_prefix}net-ssh-krb"
package { $kerberos_pkg:
ensure => present,
}

Also available in: Unified diff