Initial add of dmarcts-report-viewer.

This commit is contained in:
Jim Hague 2024-08-22 15:41:34 +01:00
parent 49bc737669
commit e7b7f7ba4a
4 changed files with 36 additions and 0 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "states/gpodder/micro-gpodder-server"] [submodule "states/gpodder/micro-gpodder-server"]
path = states/gpodder/micro-gpodder-server path = states/gpodder/micro-gpodder-server
url = https://github.com/bohwaz/micro-gpodder-server.git url = https://github.com/bohwaz/micro-gpodder-server.git
[submodule "states/dmarc_reports/dmarcts-report-viewer"]
path = states/dmarc_reports/dmarcts-report-viewer
url = https://github.com/techsneeze/dmarcts-report-viewer.git

@ -0,0 +1 @@
Subproject commit 4730985c5a0079435efb939a5ac902ceed77ee9a

View File

@ -0,0 +1,15 @@
<?php
// ####################################################################
// ### configuration ##################################################
// ####################################################################
// Supported types: mysql, pgsql. If unset, defaults to mysql
//$dbtype="mysql";
$dbhost="localhost";
$dbname="dmarcts";
$dbuser="dmarcts";
$dbpass="{{ salt['pillar.get']('dmarcts:mariadb_pw', '') }}";
$dbport="3306";
?>

View File

@ -39,3 +39,20 @@ dmarcts:
cron.present: cron.present:
- user: dmarc - user: dmarc
- special: '@daily' - special: '@daily'
dmarcts-report-viewer:
pkg.installed:
- pkgs:
- php-xml
- php-mysql
file.recurse:
- name: /srv/dmarcts-report-viewer
- source: salt://dmarc_reports/dmarcts-report-viewer
- dir_mode: '0755'
- file_mode: '0644'
dmarcts-report-viewer-config:
file.managed:
- name: /srv/dmarcts-report-viewer/dmarcts-report-viewer-config.php
- source: salt://dmarc_reports/dmarcts-report-viewer-config.php
- template: jinja