Initial stage of dmarcts support.

This commit is contained in:
Jim Hague 2024-08-22 12:51:00 +01:00
parent 27e8fdd5fc
commit 0d2185a673
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,3 @@
dmarcts:
user_pw: 'user'
mariadb_pw: 'dmarcts'

View File

@ -10,3 +10,4 @@ base:
- secrets/mailman
- secrets/smtpauth
- secrets/webmail
- secrets/dmarcts

View File

@ -0,0 +1,23 @@
dmarc:
user.present:
- fullname: 'DMARC reports'
- home: /home/dmarc
- shell: /usr/sbin/nologin
- system: True
- usergroup: True
- password: '{{ salt['pillar.get']('dmarcts:user_pw', '') }}'
- hash_password: True
- enforce_password: False
dmarcts:
pkg.installed:
- name: dmarcts-report-parser
mysql_user.present:
- name: dmarcts
- password: '{{ salt['pillar.get']('dmarcts:mariadb_pw', '') }}'
mysql_database.present:
- name: dmarcts
mysql_grants.present:
- grant: all privileges
- database: dmarcts.*
- user: dmarcts

View File

@ -35,3 +35,4 @@ base:
- mailman
- mercurial
- webmail
- dmarc_reports