Skip to content

Commit dd3b023

Browse files
committed
Move containers-tmpwatch to /var/lib/openstack
This change moves the script we're using for the logs cronjob into the /var/lib/openstack/cron directory. This facilitates the bootc immutable filesystem where we can't write to /usr, while also consolidating scripts relevant to our deployment in a common place. Signed-off-by: Brendan Shephard <[email protected]>
1 parent bf14881 commit dd3b023

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roles/edpm_logrotate_crond/tasks/configure.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@
1717
- name: Configure tmpwatch on the host
1818
become: true
1919
block:
20+
- name: Create /var/lib/openstack/cron
21+
ansible.builtin.file:
22+
path: "/var/lib/openstack/cron"
23+
mode: 0644
24+
state: directory
25+
2026
- name: Push script
2127
ansible.builtin.copy:
22-
dest: /usr/local/sbin/containers-tmpwatch
28+
dest: /var/lib/openstack/cron/containers-tmpwatch
2329
owner: root
2430
group: root
2531
mode: "0755"

0 commit comments

Comments
 (0)