summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-15 02:03:11 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-15 02:03:11 -0500
commit70962c2d930179c2cf2d45e033d18155872d1f71 (patch)
tree38a116e462e2ee6ad8241d14ab7e9e909835eab4 /modules
parentcb4c28dbc2f28cef38a26d8572c8235baea4ee5a (diff)
downloadpuppet-tozt-70962c2d930179c2cf2d45e033d18155872d1f71.tar.gz
puppet-tozt-70962c2d930179c2cf2d45e033d18155872d1f71.zip
install samba
will write up the config later
Diffstat (limited to 'modules')
-rw-r--r--modules/partofme/files/smb.conf1
-rw-r--r--modules/partofme/manifests/samba.pp8
-rw-r--r--modules/samba/manifests/init.pp11
3 files changed, 20 insertions, 0 deletions
diff --git a/modules/partofme/files/smb.conf b/modules/partofme/files/smb.conf
new file mode 100644
index 0000000..4640904
--- /dev/null
+++ b/modules/partofme/files/smb.conf
@@ -0,0 +1 @@
+# TODO
diff --git a/modules/partofme/manifests/samba.pp b/modules/partofme/manifests/samba.pp
new file mode 100644
index 0000000..ae5c54b
--- /dev/null
+++ b/modules/partofme/manifests/samba.pp
@@ -0,0 +1,8 @@
+class partofme::samba {
+ include samba
+
+ file { '/etc/samba/smb.conf':
+ source => 'puppet:///modules/partofme/smb.conf',
+ before => Class['samba'];
+ }
+}
diff --git a/modules/samba/manifests/init.pp b/modules/samba/manifests/init.pp
new file mode 100644
index 0000000..cd131aa
--- /dev/null
+++ b/modules/samba/manifests/init.pp
@@ -0,0 +1,11 @@
+class samba {
+ package { 'samba':
+ ensure => installed;
+ }
+
+ service { ['smb', 'nmb']:
+ enable => true,
+ ensure => running,
+ require => Package['samba'];
+ }
+}