aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 14:15:04 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 14:15:04 -0400
commitc8c08812c1db3d925cde442b33196236b1d42095 (patch)
tree62268b73d6dcb4179e54a63657d23f91eb03f52a /manifests
parente3ad4c2e0ea22af3a2d3e91e1869db2824575db4 (diff)
downloadpuppet-samba-c8c08812c1db3d925cde442b33196236b1d42095.tar.gz
puppet-samba-c8c08812c1db3d925cde442b33196236b1d42095.tar.bz2
config option changes should restart server
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server/share.pp8
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"]
}
}
}