Version information
released Nov 16th 2015
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet >=2.7.20 <4.1.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'thias-samba', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
thias/samba — version 1.0.0 Nov 16th 2015
puppet-samba
Overview
Install, enable and configure a SAMBA Windows share server. Should work on Red Hat Enterprise Linux (and clones such as CentOS), Debian (and derivatives such as Ubuntu) and FreeBSD.
samba::server
: Main class to manage a Samba server
Example Usage
class { '::samba::server':
workgroup => 'EXAMPLE',
server_string => 'Example File Server 01',
netbios_name => 'F01',
interfaces => [ 'lo', 'eth0' ],
hosts_allow => [ '127.', '192.168.' ],
local_master => 'yes',
map_to_guest => 'Bad User',
os_level => '50',
preferred_master => 'yes',
extra_global_options => [
'printing = BSD',
'printcap name = /dev/null',
],
shares => {
'homes' => [
'comment = Home Directories',
'browseable = no',
'writable = yes',
],
'pictures' => [
'comment = Pictures',
'path = /srv/pictures',
'browseable = yes',
'writable = yes',
'guest ok = yes',
'available = yes',
],
},
selinux_enable_home_dirs => true,
}
---
classes:
- '::samba::server'
samba::server::workgroup: 'EXAMPLE'
samba::server::server_string: 'Example File Server 01'
samba::server::netbios_name: 'F01'
samba::server::interfaces:
- 'lo'
- 'eth0'
samba::server::hosts_allow:
- '127.'
- '192.168.'
samba::server::local_master: 'yes'
samba::server::map_to_guest: 'Bad User'
samba::server::os_level: '50'
samba::server::preferred_master: 'yes'
samba::server::extra_global_options:
- 'printing = BSD'
- 'printcap name = /dev/null'
samba::server::shares:
homes:
- 'comment = Home Directories'
- 'browseable = no'
- 'writable = yes'
pictures:
- 'comment = Pictures'
- 'path = /srv/pictures'
- 'browseable = yes'
- 'writable = yes'
- 'guest ok = yes'
- 'available = yes'
samba::server::selinux_enable_home_dirs: true
2015-11-16 - 1.0.0
- Fix service for Debian 8+ (#14, @tskirvin).
- Fix secrets.tdb path for Ubuntu 14+ (#15, @amateo).
2014-11-11 - 0.1.5
- Fix RHEL5/CentOS5 services (no nmb service, #8, @cdenneen).
- Add some LDAP options (#7, @t0mmyt).
2014-04-20 - 0.1.4
- Add guest_account parameter (#4, @chris-hall-hu).
2014-03-31 - 0.1.3
- Add support for LDAP authentication (#1, @Spredzy).
- Add support for FreeBSD (#3, @fessoga5).
2013-11-18 - 0.1.2
- Fix the selinux conditional, being a fact it's a string not a boolean.
- Fix the service name on Ubuntu.
2013-05-24 - 0.1.1
- Add support for Debian service name (sid3windr).
- Update README and use markdown.
- Change to 2-space indent.
2012-12-20 - 0.1.0
- Fix tab vs. spaces in smb.conf template.
- Fix persistence for SELinux changes.
- Add samba_export_all_rw SELinux option.
- Add security and map_to_guest options.
2012-09-19 - 0.0.2
- Include fixes to smb.conf from Up2date Cyborg.
2012-07-26 - 0.0.1
- Initial module release.
Copyright (C) 2012-2015 Matthias Saou Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.