Give samba_interfaces a default value
This commit is contained in:
parent
bf5aa7dacd
commit
4e845d4141
@ -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'
|
||||||
|
@ -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 }}]
|
||||||
|
Loading…
Reference in New Issue
Block a user