aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/config.pp
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 11:32:00 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 11:32:00 -0400
commit0ac18d517632fdf59f83e7184b8dd35a99909c30 (patch)
treef9b79d39630a557f84c6d992458fcdb5b7a2417e /manifests/server/config.pp
parente78a712e1152fd8981b87a6bb035777d0256f268 (diff)
downloadpuppet-samba-0ac18d517632fdf59f83e7184b8dd35a99909c30.tar.gz
puppet-samba-0ac18d517632fdf59f83e7184b8dd35a99909c30.tar.bz2
var isn't needed in server config, but it's nice to require the config dir, and permisions
Diffstat (limited to 'manifests/server/config.pp')
-rw-r--r--manifests/server/config.pp22
1 files changed, 15 insertions, 7 deletions
diff --git a/manifests/server/config.pp b/manifests/server/config.pp
index e9b1ed9..9699857 100644
--- a/manifests/server/config.pp
+++ b/manifests/server/config.pp
@@ -1,11 +1,19 @@
class samba::server::config {
-
+
+ file { "/etc/samba":
+ ensure => directory,
+ owner => "root",
+ group => "root",
+ mode => 0755,
+ }
+
file { "/etc/samba/smb.conf":
- ensure => $ensure,
- owner => root,
- group => root,
- require => Class["samba::server::install"],
+ ensure => present,
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ require => [File["/etc/samba"], Class["samba::server::install"]],
notify => Class["samba::server::service"]
}
-
-} \ No newline at end of file
+
+}