From f7f98ca59bcba683caff6979bf0f787e4532910c Mon Sep 17 00:00:00 2001 From: "Douglas Cerna (Soy Douglas)" Date: Wed, 4 Dec 2024 14:51:02 +0000 Subject: [PATCH] Add systemd-tmpfiles configuration file --- tasks/configure.yml | 6 ++++++ templates/etc/tmpfiles.d/am-prometheus.conf | 1 + 2 files changed, 7 insertions(+) create mode 100644 templates/etc/tmpfiles.d/am-prometheus.conf diff --git a/tasks/configure.yml b/tasks/configure.yml index 798e727..3362779 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -134,6 +134,12 @@ environment: "{{ archivematica_src_am_dashboard_environment }}" when: archivematica_src_configure_dashboard|bool and dashboard_user.stdout == "" and dashboard_ss_url.stdout == "" +# Configure systemd-tmpfiles to not delete AM Prometheus data files. +- name: "Set up systemd-tmpfiles configuration" + template: + src: "etc/tmpfiles.d/am-prometheus.conf" + dest: "/etc/tmpfiles.d/am-prometheus.conf" + # # Configure AtoM DIP Upload diff --git a/templates/etc/tmpfiles.d/am-prometheus.conf b/templates/etc/tmpfiles.d/am-prometheus.conf new file mode 100644 index 0000000..7d14ce7 --- /dev/null +++ b/templates/etc/tmpfiles.d/am-prometheus.conf @@ -0,0 +1 @@ +x /tmp/prometheus-stats*