Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e18fb763a2 | |||
| f6f6cc4804 | |||
| 52d3d8ecd9 |
7 changed files with 20 additions and 5 deletions
|
|
@ -50,7 +50,10 @@ alloy_config_default: |
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.exporter.unix "local_system" {
|
prometheus.exporter.unix "local_system" {
|
||||||
enable_collectors = ["systemd"]
|
enable_collectors = ["systemd", "textfile"]
|
||||||
|
textfile {
|
||||||
|
directory = "/var/lib/node_exporter_textfile/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.scrape "scrape_metrics" {
|
prometheus.scrape "scrape_metrics" {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# renovate: datasource=docker depName=git.hamburg.ccc.de/ccchh/oci-images/nextcloud
|
# renovate: datasource=docker depName=git.hamburg.ccc.de/ccchh/oci-images/nextcloud
|
||||||
nextcloud__version: 34
|
nextcloud__version: 34
|
||||||
# renovate: datasource=docker depName=docker.io/library/postgres
|
# renovate: datasource=docker depName=docker.io/library/postgres
|
||||||
nextcloud__postgres_version: 15.18
|
nextcloud__postgres_version: 17.11
|
||||||
nextcloud__fqdn: cloud.hamburg.ccc.de
|
nextcloud__fqdn: cloud.hamburg.ccc.de
|
||||||
nextcloud__data_dir: /data/nextcloud
|
nextcloud__data_dir: /data/nextcloud
|
||||||
nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2') }}"
|
nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2') }}"
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,10 @@ alloy_config_default: |
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.exporter.unix "local_system" {
|
prometheus.exporter.unix "local_system" {
|
||||||
enable_collectors = ["systemd"]
|
enable_collectors = ["systemd", "textfile"]
|
||||||
|
textfile {
|
||||||
|
directory = "/var/lib/node_exporter_textfile/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
prometheus.scrape "scrape_metrics" {
|
prometheus.scrape "scrape_metrics" {
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ services:
|
||||||
- POSTGRES_DB=mailmandb
|
- POSTGRES_DB=mailmandb
|
||||||
- POSTGRES_USER=mailman
|
- POSTGRES_USER=mailman
|
||||||
- "POSTGRES_PASSWORD={{ secret__lists__postgres_password }}"
|
- "POSTGRES_PASSWORD={{ secret__lists__postgres_password }}"
|
||||||
image: docker.io/library/postgres:12-alpine
|
image: docker.io/library/postgres:17-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/mailman/database:/var/lib/postgresql/data
|
- /opt/mailman/database:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: docker.io/library/postgres:15-alpine
|
image: docker.io/library/postgres:17-alpine
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_USER=pretalx"
|
- "POSTGRES_USER=pretalx"
|
||||||
- "POSTGRES_PASSWORD={{ secret__pretalx_db_password }}"
|
- "POSTGRES_PASSWORD={{ secret__pretalx_db_password }}"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
---
|
---
|
||||||
- name: Deploy Grafana Alloy with config
|
- name: Deploy Grafana Alloy with config
|
||||||
block:
|
block:
|
||||||
|
- name: Create directory for node_exporter textfile collector
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/lib/node_exporter_textfile
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
|
||||||
- name: Install Alloy
|
- name: Install Alloy
|
||||||
ansible.builtin.include_tasks: install.yaml
|
ansible.builtin.include_tasks: install.yaml
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,6 @@ ExecStart=/usr/local/lib/ansible_pull_venv/bin/ansible-pull \
|
||||||
--inventory "{{ ansible_pull__inventory }}" \
|
--inventory "{{ ansible_pull__inventory }}" \
|
||||||
"{{ ansible_pull__playbook }}"
|
"{{ ansible_pull__playbook }}"
|
||||||
User={{ ansible_pull__user }}
|
User={{ ansible_pull__user }}
|
||||||
|
ExecStartPost=/usr/bin/bash -c 'echo "ansible_pull_last_successful_run_timestamp_seconds $(date +%s)" > /var/lib/node_exporter_textfile/ansible_pull.prom.$$; mv /var/lib/node_exporter_textfile/ansible_pull.prom.$$ /var/lib/node_exporter_textfile/ansible_pull.prom'
|
||||||
# Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist.
|
# Reboot, if /var/run/reboot-required or /var/run/ansible-reboot-required exist.
|
||||||
ExecStartPost=/usr/bin/bash -c 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then sudo systemctl reboot; fi'
|
ExecStartPost=/usr/bin/bash -c 'if [ -e /var/run/reboot-required ] || [ -e /var/run/ansible-reboot-required ]; then sudo systemctl reboot; fi'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue