Merge pull request #36 from goetzk/log-level

Control samba log level
This commit is contained in:
Bert Van Vreckem 2018-10-04 21:05:08 +02:00 committed by GitHub
commit 966c80efd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -44,8 +44,9 @@ No specific requirements
| `samba_load_homes` | false | When true, user home directories are accessible. | | `samba_load_homes` | false | When true, user home directories are accessible. |
| `samba_load_printers` | false | When true, printers attached to the host are shared | | `samba_load_printers` | false | When true, printers attached to the host are shared |
| `samba_local_master` | true | When true, nmbd will try & become local master of the subnet | | `samba_local_master` | true | When true, nmbd will try & become local master of the subnet |
| `samba_log_size` | 5000 | Set the maximum size of the log file. |
| `samba_log` | - | Set the log file. If left undefined, logging is done through syslog. | | `samba_log` | - | Set the log file. If left undefined, logging is done through syslog. |
| `samba_log_size` | 5000 | Set the maximum size of the log file. |
| `samba_log_level` | 0 | Set Samba log level, 0 is least verbose and 10 is a flood of debug output. |
| `samba_map_to_guest` | `bad user` | Behaviour when unregistered users access the shares. | | `samba_map_to_guest` | `bad user` | Behaviour when unregistered users access the shares. |
| `samba_mitigate_cve_2017_7494` | true | CVE-2017-7494 mitigation breaks some clients, such as macOS High Sierra. | | `samba_mitigate_cve_2017_7494` | true | CVE-2017-7494 mitigation breaks some clients, such as macOS High Sierra. |
| `samba_netbios_name` | `{{ ansible_hostname }}` | The NetBIOS name of this server. | | `samba_netbios_name` | `{{ ansible_hostname }}` | The NetBIOS name of this server. |

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_log_level: 0
samba_interfaces: [] samba_interfaces: []
samba_security: 'user' samba_security: 'user'
samba_passdb_backend: 'tdbsam' samba_passdb_backend: 'tdbsam'

View File

@ -21,6 +21,7 @@
{% if samba_log is defined %} {% if samba_log is defined %}
log file = {{ samba_log }} log file = {{ samba_log }}
max log size = {{ samba_log_size }} max log size = {{ samba_log_size }}
log level = {{ samba_log_level }}
{% else %} {% else %}
logging = syslog logging = syslog
{% endif %} {% endif %}