diff options
-rw-r--r-- | manifests/partofme.pp | 1 | ||||
-rw-r--r-- | modules/partofme/files/smb.conf | 1 | ||||
-rw-r--r-- | modules/partofme/manifests/samba.pp | 8 | ||||
-rw-r--r-- | modules/samba/manifests/init.pp | 11 |
4 files changed, 21 insertions, 0 deletions
diff --git a/manifests/partofme.pp b/manifests/partofme.pp index 4dcef2b..3ca67b6 100644 --- a/manifests/partofme.pp +++ b/manifests/partofme.pp @@ -4,4 +4,5 @@ node 'partofme.localdomain' { include base include partofme::backups + include partofme::samba } 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']; + } +} |