Puppet Class: sendmail::service
- Inherits:
- sendmail::params
- Defined in:
- manifests/service.pp
Overview
Class: sendmail::service
Manage the Sendmail MTS service.
Parameters:
- service_name
-
The service name to use on this operating system.
- service_enable
-
Configure whether the Sendmail MTA should be enabled at boot. Valid options: ‘true’ or ‘false’. Default value: ‘true’.
- service_manage
-
Configure whether Puppet should manage the Sendmail service. Valid options: ‘true’ or ‘false’. Default value: ‘true’.
- service_ensure
-
Configure whether the Sendmail service should be running. Valid options: ‘running’ or ‘stopped’. Default value: ‘running’.
- service_hasstatus
-
Define whether the service type can rely on a functional status. Valid options: ‘true’ or ‘false’. Default value: ‘true’
Requires:
Nothing.
Sample Usage:
class { 'sendmail::service':
}
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'manifests/service.pp', line 36
class sendmail::service (
String $service_name = $::sendmail::params::service_name,
Boolean $service_enable = true,
Boolean $service_manage = true,
Stdlib::Ensure::Service $service_ensure = 'running',
Boolean $service_hasstatus = true,
) inherits sendmail::params {
if $service_manage {
service { 'sendmail':
ensure => $service_ensure,
name => $service_name,
enable => $service_enable,
hasstatus => $service_hasstatus,
}
}
}
|