Files
configpolicy/roles/samba/templates/smb.conf.j2
Dustin C. Hatch 10d6b52460 roles/samba: Support selecting interfaces
The `samba_interfaces` variable can now be defined to populate the
`interfaces` global configuration parameter in `smb.conf`. This
parameter controls the interfaces or addresses to which the Samba server
binds, and also the IP addresses that are registered in DNS.
2018-06-23 14:42:45 -05:00

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