2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "maildb/map.jinja" import maildb with context %}
|
|
|
|
maildb-pkg:
|
|
|
|
pkg.latest:
|
|
|
|
- pkgs:
|
|
|
|
- python3
|
2020-09-06 16:30:37 +02:00
|
|
|
- python3-psycopg2
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
maildb-user-vmail:
|
|
|
|
user.present:
|
|
|
|
- name: vmail
|
|
|
|
- home: /home/vmail
|
|
|
|
|
|
|
|
maildb-apps-dir:
|
|
|
|
file.directory:
|
|
|
|
- name: {{ maildb.appdir }}
|
|
|
|
- user: vmail
|
|
|
|
- group: vmail
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0755"
|
2020-07-10 00:58:55 +02:00
|
|
|
- makedirs: true
|
|
|
|
|
|
|
|
maildb-script:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ maildb.appdir }}/maildb.py
|
|
|
|
- source: salt://maildb/maildb.py
|
|
|
|
- user: vmail
|
|
|
|
- group: vmail
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0755"
|
2020-07-10 00:58:55 +02:00
|
|
|
- require:
|
|
|
|
- file: maildb-apps-dir
|