configpolicy/roles/samba/templates/smb.conf.j2

36 lines
759 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_interfaces is defined %}
interfaces = {{ samba_interfaces|join(' ') }}
{% endif %}
{% if samba_options is defined %}
{% for option in samba_options %}
{% for key, value in option|dictsort %}
{{ key }} = {{ value }}
{% endfor %}
{% endfor %}
{% endif %}
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