Give samba_interfaces a default value

This commit is contained in:
Bert Van Vreckem 2016-07-29 09:54:33 +02:00
parent bf5aa7dacd
commit 4e845d4141
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
samba_workgroup: 'WORKGROUP' samba_workgroup: 'WORKGROUP'
samba_server_string: 'Fileserver %m' samba_server_string: 'Fileserver %m'
samba_log_size: 5000 samba_log_size: 5000
samba_interfaces: []
samba_security: 'user' samba_security: 'user'
samba_passdb_backend: 'tdbsam' samba_passdb_backend: 'tdbsam'
samba_map_to_guest: 'bad user' samba_map_to_guest: 'bad user'

View File

@ -24,7 +24,7 @@
passdb backend = {{ samba_passdb_backend }} passdb backend = {{ samba_passdb_backend }}
map to guest = {{ samba_map_to_guest }} map to guest = {{ samba_map_to_guest }}
{% if samba_interfaces is defined %} {% if samba_interfaces|length > 0 %}
interfaces = {{ samba_interfaces }} interfaces = {{ samba_interfaces }}
{% endif %} {% endif %}
@ -50,7 +50,7 @@
writable = yes writable = yes
{% endif %} {% endif %}
{% if samba_shares is defined %} {% if samba_shares|length > 0 %}
## Shared directories ## Shared directories
{% for share in samba_shares %} {% for share in samba_shares %}
[{{ share.name }}] [{{ share.name }}]