Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment