Puppet Class: autofs::package
- Defined in:
- manifests/package.pp
Overview
Class: autofs::package
The autofs::package class installs the autofs package.
This class will determine if the OS running is a supported Linux distribution and install the appropriate package. It will prevent failures on a system that is running Solaris, but will not install anything as it should be installed by default.
If the code doesn't find a matching supported OS, then the Puppet run will fail with a "OS not supported" message.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'manifests/package.pp', line 20
class autofs::package {
Package {
ensure => installed
}
case $::osfamily {
'Debian', 'Ubuntu': {
package { 'autofs': }
}
'RedHat', 'CentOS': {
package { 'autofs': }
}
'Suse': {
package { 'autofs': }
}
'Solaris': {
# Solaris includes autofs
# Block to prevent failures
}
default: {
fail("${::operatingsystem} not supported.")
}
}
}
|