Compare commits

...

4 Commits

Author SHA1 Message Date
6a938ea6b3 Add Nagios user to pi-storage-1 2021-08-24 12:40:32 -05:00
2765067560 Correct wrongly-named group vars 2021-08-24 12:37:08 -05:00
3b133782c9 Have pi-storage-1 psql listen on localhost 2021-08-24 12:29:44 -05:00
f6004def4a Add system-wide cronjob for Nextcloud cron
Guess that's not containerized, huh
2021-08-24 12:25:29 -05:00
5 changed files with 8 additions and 3 deletions

View File

@ -41,7 +41,7 @@
vars:
postgresql_global_config_options:
- option: listen_addresses
value: 192.168.103.1,172.23.103.1
value: 192.168.103.1,172.23.103.1,127.0.0.1
postgresql_hba_entries:
- { type: local, database: all, user: postgres, auth_method: peer }
- { type: local, database: all, user: all, auth_method: md5 }
@ -52,12 +52,14 @@
# Allow hosts over zerotier
- { type: host, database: all, user: all, address: '172.23.0.0/16', auth_method: md5 }
postgresql_users:
- name: gulagbot
password: "{{ secret_gulagbot_local_db_pass }}"
- name: grafana
password: "{{ secret_grafana_local_db_pass }}"
- name: gulagbot
password: "{{ secret_gulagbot_local_db_pass }}"
- name: firefly
password: "{{ secret_firefly_db_pass }}"
- name: nagios
password: "{{ secret_postgresql_monitoring_password }}"
postgresql_databases:
- name: gulagbot
owner: gulagbot

View File

@ -12,3 +12,6 @@
- /data/nextcloud/themes:/var/www/html/themes
- /srv/desu.ltd/nc:/var/www/html/data
tags: [ docker, nextcloud ]
- name: assure nextcloud cronjob
cron: user=root name=nextcloud minute=*/5 job="docker exec --user www-data -it nextcloud php -f /var/www/html/cron.php"
tags: [ docker, nextcloud, cron ]