forked from catalin/fukuops
feat: add ansible/nextcloud
This commit is contained in:
parent
04a428e369
commit
81b6f45b08
6 changed files with 39 additions and 1 deletions
26
ansible/nextcloud/role-promtail.yml
Normal file
26
ansible/nextcloud/role-promtail.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
- name: Install promtail
|
||||
hosts:
|
||||
- nextclouds
|
||||
|
||||
roles:
|
||||
- role: patrickjahns.promtail
|
||||
vars:
|
||||
promtail_version: 2.9.4
|
||||
promtail_config_clients:
|
||||
- url: https://loki.fuku/loki/api/v1/push
|
||||
basic_auth:
|
||||
username: cloud
|
||||
password: "{{ lookup('env', 'NEXTCLOUD_PROMTAIL_PASSWORD') | mandatory }}"
|
||||
tls_config:
|
||||
insecure_skip_verify: true
|
||||
promtail_config_scrape_configs:
|
||||
- job_name: system
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
nextcloud: cloud.fukurokuju.dev
|
||||
__path__: /mnt/share/data/cloud/data/{nextcloud,audit}.log
|
||||
promtail_config_limits_config:
|
||||
readline_rate_enabled: true
|
||||
readline_rate_drop: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue