Files
configpolicy/roles/samba/templates/smb.conf.j2
Dustin C. Hatch 4546cffeba roles/samba: Basic Samba configuration
The *samba* role provides general configuration for Samba. Other roles
will provide configuration for specific features such as Active
Directory membership, file shares, etc.
2018-03-11 18:16:17 -05:00

34 lines
723 B
Django/Jinja

[global]
{% if netbios_name is defined %}
netbios name = {{ netbios_name }}
{% endif %}
workgroup = {{ workgroup }}
{% if krb5_realm is defined %}
realm = {{ krb5_realm }}
{% endif %}
{% if samba_server_role is defined %}
server role = {{ samba_server_role }}
{% else %}
security = {{ samba_security }}
{% endif %}
{% if samba_options is defined %}
{% for option in samba_options %}
{% for key, value in option|dictsort %}
{{ key }} = {{ value }}
{% endfor %}
{% endfor %}
{% endif %}
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printing = bsd
printcap name = /dev/null
load printers = no
guest account = nobody
map to guest = Bad User
include = /etc/samba/winbind.conf
include = /etc/samba/shares.conf