Commit 03b84c43 authored by Emmanuel Gelati's avatar Emmanuel Gelati Committed by Raphaël Pinson
Browse files

Added postfix::service_ensure and postfix::service_enabled

parent 17d9d6ee
......@@ -108,6 +108,8 @@ class postfix (
Boolean $use_sympa = false, # postfix_use_sympa
String $postfix_ensure = 'present',
String $mailx_ensure = 'present',
String $service_ensure = 'running',
Boolean $service_enabled = true,
) inherits postfix::params {
$_smtp_listen = $mailman ? {
......
......@@ -6,8 +6,8 @@ class postfix::service {
require => Class['postfix::files'],
}
service { 'postfix':
ensure => running,
enable => true,
ensure => $::postfix::service_ensure,
enable => $::postfix::service_enabled,
hasstatus => true,
restart => $::postfix::params::restart_cmd,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment