paulbsd-salt/states/samba/users.sls

19 lines
431 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "samba/map.jinja" import samba with context %}
{%- from "samba/map.jinja" import users with context %}
{%- for user in users %}
samba-user-{{ user.name }}:
{%- if user.enabled %}
pdbedit.managed:
{%- else %}
pdbedit.absent:
{%- endif %}
- name: {{ user.name }}
- login: {{ user.name }}
- password: "{{ user.password }}"
2020-09-12 17:41:35 +02:00
- password_hashed: false
2020-07-10 00:58:55 +02:00
- require:
- pkg: samba-pkg
2021-08-19 21:15:24 +02:00
{%- endfor %}