From a942bca1a77e0d1f74704d032e1438a5ea9f7fb2 Mon Sep 17 00:00:00 2001 From: jurim76 Date: Wed, 20 Jun 2018 11:13:38 +0300 Subject: [PATCH] Define restart command for smbd service Define restart command for smbd service, for example "systemctl reload smbd" --- manifests/classic.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/classic.pp b/manifests/classic.pp index f3e9704..c3eb475 100644 --- a/manifests/classic.pp +++ b/manifests/classic.pp @@ -56,6 +56,7 @@ $globalabsentoptions = [], $joinou = undef, Optional[String] $default_realm = undef, + Optional[String] $service_restart = undef, Array $additional_realms = [], ) inherits samba::params{ @@ -230,6 +231,14 @@ enable => true, } } + + # Allow overriding of 'restart' of Service resource + if $service_restart { + Service['SambaSmb'] { + restart => $service_restart, + } + } + $sambamode = 'classic' # Deploy /etc/sysconfig/|/etc/defaut/ file (startup options) file{ 'SambaOptsFile':