aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorMarc <mmontgomery@pcch.org>2012-08-17 09:39:52 -0400
committerMarc <mmontgomery@pcch.org>2012-08-17 09:39:52 -0400
commite78a712e1152fd8981b87a6bb035777d0256f268 (patch)
treee832d32239fbbbec9d5cb584b836a5917cf788ce /manifests/server
downloadpuppet-samba-e78a712e1152fd8981b87a6bb035777d0256f268.tar.gz
puppet-samba-e78a712e1152fd8981b87a6bb035777d0256f268.tar.bz2
initial commit current progress creates shares in ensures samba is installed and daemon is running, can add shares to smb.conf, and can set global variables
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/config.pp11
-rw-r--r--manifests/server/install.pp7
-rw-r--r--manifests/server/service.pp11
3 files changed, 29 insertions, 0 deletions
diff --git a/manifests/server/config.pp b/manifests/server/config.pp
new file mode 100644
index 0000000..e9b1ed9
--- /dev/null
+++ b/manifests/server/config.pp
@@ -0,0 +1,11 @@
+class samba::server::config {
+
+ file { "/etc/samba/smb.conf":
+ ensure => $ensure,
+ owner => root,
+ group => root,
+ require => Class["samba::server::install"],
+ notify => Class["samba::server::service"]
+ }
+
+} \ No newline at end of file
diff --git a/manifests/server/install.pp b/manifests/server/install.pp
new file mode 100644
index 0000000..6514626
--- /dev/null
+++ b/manifests/server/install.pp
@@ -0,0 +1,7 @@
+class samba::server::install {
+
+ package { "samba":
+ ensure => installed,
+ }
+
+} \ No newline at end of file
diff --git a/manifests/server/service.pp b/manifests/server/service.pp
new file mode 100644
index 0000000..8984841
--- /dev/null
+++ b/manifests/server/service.pp
@@ -0,0 +1,11 @@
+class samba::server::service {
+
+ service { "smbd":
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ require => Class["samba::server::config"]
+ }
+
+} \ No newline at end of file