paulbsd-salt/states/maildb/install.sls

31 lines
590 B
Plaintext
Raw Permalink Normal View History

2022-12-26 10:12:29 +01:00
---
{%- from "maildb/map.jinja" import maildb with context %}
maildb-pkg:
pkg.installed:
- 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
2023-06-29 08:57:41 +02:00
- source: salt://maildb/templates/maildb.py
2022-12-26 10:12:29 +01:00
- user: vmail
- group: vmail
- mode: "0755"
- require:
- file: maildb-apps-dir