Puppet Class: httpproxy::packagemanager
- Defined in:
- manifests/packagemanager.pp
Overview
Packagemanager.pp (private class) This class chooses the appropriate package handler class based on OS distribution
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'manifests/packagemanager.pp', line 22
class httpproxy::packagemanager {
$ensure = $httpproxy::packagemanager ? {
true => $httpproxy::ensure,
default => $httpproxy::packagemanager,
}
case $::osfamily {
'RedHat': {
contain '::httpproxy::package::rpm'
contain '::httpproxy::package::yum'
}
'Debian': {
contain '::httpproxy::package::apt'
if $httpproxy::purge_apt_conf { contain '::httpproxy::package::purge_apt_conf' }
}
default: { fail('your distro is not supported') }
}
}
|