Skip to content

Commit

Permalink
Move containers-tmpwatch to /var/lib/openstack
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bshephar committed Dec 9, 2024
1 parent b5feb8b commit 5b1749d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/edpm_logrotate_crond/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
- name: Configure tmpwatch on the host
become: true
block:
- name: Create /var/lib/openstack/cron
ansible.builtin.file:
path: "/var/lib/openstack/cron"
mode: 0644
state: directory

- name: Push script
ansible.builtin.copy:
dest: /usr/local/sbin/containers-tmpwatch
dest: /var/lib/openstack/cron/containers-tmpwatch
owner: root
group: root
mode: "0755"
Expand Down

0 comments on commit 5b1749d

Please sign in to comment.