diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-15 02:03:11 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-15 02:03:11 -0500 |
commit | 70962c2d930179c2cf2d45e033d18155872d1f71 (patch) | |
tree | 38a116e462e2ee6ad8241d14ab7e9e909835eab4 /modules | |
parent | cb4c28dbc2f28cef38a26d8572c8235baea4ee5a (diff) | |
download | puppet-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.conf | 1 | ||||
-rw-r--r-- | modules/partofme/manifests/samba.pp | 8 | ||||
-rw-r--r-- | modules/samba/manifests/init.pp | 11 |
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']; + } +} |