Displaying 1 result from an estimated 1 matches for "foobar_os_rhel_package".
2012 Dec 07
6
Poll for thoughts on hierifying modules and OS default differences
...ironment that uses debian...
one of our engineers suggested the following paradigm:
class foobar {
include foobar::params
$package = $foobar::params::package
Package {$package:
ensure => installed
}
}
class foobar::params {
case $osfamily:
redhat: {
$package = hiera(''foobar_os_rhel_package'',''foobar'')
}
debian: {
$package = hiera(''foobar_os_deb_package'',''foobard'')
}
default: {
fail
}
}
which makes our topmost hierarchy (which is not segregated by OS, because the relevant hierarchies doen''t split...