up2date
This commit is contained in:
34
samba/files/smb.conf.jinja
Normal file
34
samba/files/smb.conf.jinja
Normal file
@@ -0,0 +1,34 @@
|
||||
#
|
||||
# Managed by Salt
|
||||
#
|
||||
# run testparm -s after making changes to validate them
|
||||
|
||||
[global]
|
||||
workgroup = WORKGROUP
|
||||
log file = /var/log/samba/log.%m
|
||||
max log size = 1000
|
||||
logging = file
|
||||
panic action = /usr/share/samba/panic-action %d
|
||||
server role = standalone server
|
||||
obey pam restrictions = yes
|
||||
unix password sync = no
|
||||
map to guest = bad user
|
||||
usershare max shares = 0
|
||||
|
||||
{% if salt.pillar.get('samba:enable_homes', false) %}
|
||||
[homes]
|
||||
comment = Home Directories
|
||||
browseable = no
|
||||
read only = yes
|
||||
create mask = 0700
|
||||
directory mask = 0700
|
||||
valid users = %S
|
||||
{% endif %}
|
||||
|
||||
{% for name, path in salt.pillar.get('samba:shares', {}).items() %}
|
||||
[{{ name }}]
|
||||
path = {{ path }}
|
||||
valid users = @sambashare
|
||||
read only = yes
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user