Puppet Class: postfix::service
- Inherits:
- postfix
- Defined in:
- manifests/service.pp
Overview
Class: postfix::service
Internal class: Manages the postfix service.
Authors
Marius Rieder <marius.rieder@durchmesser.ch> Bernhard Frauendienst <puppet@nospam.obeliks.de>
Copyright
Copyright 2016 Marius Rieder <marius.rieder@durchmesser.ch> Copyright 2017 Bernhard Frauendienst <puppet@nospam.obeliks.de>
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/service.pp', line 18
class postfix::service inherits postfix {
$service_enable = $::postfix::service_ensure ? {
'running' => true,
'absent' => false,
'stopped' => false,
'undef' => undef,
default => true,
}
$service_ensure_real = $::postfix::service_ensure ? {
'undef' => undef,
default => $::postfix::service_ensure
}
if $::postfix::service_manage {
service { 'postfix':
ensure => $service_ensure_real,
name => $::postfix::service_name,
enable => $service_enable,
hasstatus => true,
restart => $::postfix::restart_cmd,
}
}
}
|