From 954e8cf7bf6ee4a371fa487f4449b7f4b0299e76 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 8 Nov 2022 12:09:09 +0100 Subject: [PATCH] updated samba state --- states/samba/config.sls | 1 + states/samba/defaults.yaml | 14 +++++++++++++- states/samba/init.sls | 3 ++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/states/samba/config.sls b/states/samba/config.sls index acf6d7f..236f9a5 100644 --- a/states/samba/config.sls +++ b/states/samba/config.sls @@ -4,6 +4,7 @@ samba-config: ini.options_present: - name: /etc/samba/smb.conf - sections: {{ samba.config }} + - strict: True - watch_in: - service: samba-service-smbd - service: samba-service-nmbd diff --git a/states/samba/defaults.yaml b/states/samba/defaults.yaml index 167f71d..ce6fcc2 100644 --- a/states/samba/defaults.yaml +++ b/states/samba/defaults.yaml @@ -3,4 +3,16 @@ samba: enabled: true config: global: - workgroup: PAULBSD + dns proxy: "No" + "idmap config * : backend": "tdb" + log file: "/var/log/samba/log.%m" + map to guest: "Bad User" + max log size: "1000" + obey pam restrictions: "Yes" + pam password change: "Yes" + panic action: "/usr/share/samba/panic-action %d" + passwd program: "/usr/bin/passwd %u" + server role: "standalone server" + server string: "%h" + unix password sync: "Yes" + usershare allow guests: "Yes" diff --git a/states/samba/init.sls b/states/samba/init.sls index 6c7ba86..1808b16 100644 --- a/states/samba/init.sls +++ b/states/samba/init.sls @@ -2,4 +2,5 @@ include: - .install - .config - - .users + #- .users + - .service