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.
This commit is contained in:
33
roles/samba/templates/smb.conf.j2
Normal file
33
roles/samba/templates/smb.conf.j2
Normal file
@@ -0,0 +1,33 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user