paulbsd-salt/states/dokuwiki/templates/users.auth.php.j2

6 lines
376 B
Plaintext
Raw Permalink Normal View History

2022-10-01 20:09:25 +02:00
{%- from "dokuwiki/map.jinja" import dokuwiki with context -%}
2020-07-30 14:06:36 +02:00
{%- from "dokuwiki/map.jinja" import users with context %}
2022-10-01 20:09:25 +02:00
{%- for name, user in users.items() %}
2022-12-24 17:52:19 +01:00
{{ name }}:{{ salt['shadow.gen_password'](password=user.password) }}:{{ user.fullname }}:{{ user.email|default("unknown@example.com") }}:{{ ([user.gid] + user.optional_groups|default([]))|join(",") }}
2022-10-01 20:09:25 +02:00
{% endfor -%}