diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 11:32:00 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 11:32:00 -0400 |
commit | 0ac18d517632fdf59f83e7184b8dd35a99909c30 (patch) | |
tree | f9b79d39630a557f84c6d992458fcdb5b7a2417e | |
parent | e78a712e1152fd8981b87a6bb035777d0256f268 (diff) | |
download | puppet-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
-rw-r--r-- | manifests/server/config.pp | 22 |
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 + +} |