diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:15:04 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:15:04 -0400 |
commit | c8c08812c1db3d925cde442b33196236b1d42095 (patch) | |
tree | 62268b73d6dcb4179e54a63657d23f91eb03f52a /manifests/server | |
parent | e3ad4c2e0ea22af3a2d3e91e1869db2824575db4 (diff) | |
download | puppet-samba-c8c08812c1db3d925cde442b33196236b1d42095.tar.gz puppet-samba-c8c08812c1db3d925cde442b33196236b1d42095.tar.bz2 |
config option changes should restart server
Diffstat (limited to 'manifests/server')
-rw-r--r-- | manifests/server/share.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 51341e3..a40ed46 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -14,7 +14,8 @@ define samba::server::share($ensure = present, present => "set ${target} ${name}", default => "rm ${target} ${name}", }, - require => Class["samba::server::config"] + require => Class["samba::server::config"], + notify => Class["samba::server::service"] } if $ensure == "present" { @@ -25,6 +26,7 @@ define samba::server::share($ensure = present, '' => "rm ${target}/comment", }, require => Augeas["${name}-section"], + notify => Class["samba::server::service"] } augeas { "${name}-path": @@ -34,6 +36,7 @@ define samba::server::share($ensure = present, '' => "rm ${target}/path", }, require => Augeas["${name}-section"], + notify => Class["samba::server::service"] } augeas { "${name}-browsable": @@ -43,6 +46,7 @@ define samba::server::share($ensure = present, '' => "rm ${target}/browsable", }, require => Augeas["${name}-section"], + notify => Class["samba::server::service"] } augeas { "${name}-guest_ok": @@ -52,6 +56,7 @@ define samba::server::share($ensure = present, '' => "rm \"${target}/guest ok\"", }, require => Augeas["${name}-section"], + notify => Class["samba::server::service"] } augeas { "${name}-read_only": @@ -61,6 +66,7 @@ define samba::server::share($ensure = present, '' => "rm \"${target}/read_only\"", }, require => Augeas["${name}-section"], + notify => Class["samba::server::service"] } } } |