669eb287c9
Clean up facter osfamily matches to just use Debian, not Ubuntu. This is manually tested and confirmed to at least be the case on Oneiric, Precise and Quantal. Change-Id: I27b184ac419910f9c3271c3b4e57886333282a5f Reviewed-on: https://review.openstack.org/27399 Reviewed-by: Spencer Krum <krum.spencer@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
18 lines
401 B
Puppet
18 lines
401 B
Puppet
# Class: snmpd::params
|
|
#
|
|
# This class holds parameters that need to be
|
|
# accessed by other classes.
|
|
class snmpd::params {
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$package_name = 'net-snmp'
|
|
}
|
|
'Debian': {
|
|
$package_name = 'snmpd'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'snmpd' module only supports osfamily Debian or RedHat (slaves only).")
|
|
}
|
|
}
|
|
}
|