2024-08-22 12:51:00 +01:00
|
|
|
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
|
2024-08-22 13:26:37 +01:00
|
|
|
|
|
|
|
/etc/dmarcts-report-parser.conf:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://dmarcts-report-parser/dmarcts-report-parser.conf
|
|
|
|
- template: jinja
|
|
|
|
- user: dmarc
|
|
|
|
- group: dmarc
|
|
|
|
- mode: 600
|