paulbsd-salt/states/maildb/init.sls
Paul Lecuq 24500ff074
Some checks failed
continuous-integration/drone/push Build is failing
updated states (lints) / updated .drone.yml
2022-06-10 00:13:19 +02:00

31 lines
577 B
Plaintext

---
{%- from "maildb/map.jinja" import maildb with context %}
maildb-pkg:
pkg.latest:
- pkgs:
- python3
- python3-psycopg2
maildb-user-vmail:
user.present:
- name: vmail
- home: /home/vmail
maildb-apps-dir:
file.directory:
- name: {{ maildb.appdir }}
- user: vmail
- group: vmail
- mode: "0755"
- makedirs: true
maildb-script:
file.managed:
- name: {{ maildb.appdir }}/maildb.py
- source: salt://maildb/maildb.py
- user: vmail
- group: vmail
- mode: "0755"
- require:
- file: maildb-apps-dir