Commit cb93e8e5 authored by Robin Sonnabend's avatar Robin Sonnabend

Ensure /etc/lvm/archive does not overflow

parent 51b31c6f
Pipeline #1437 passed with stage
in 58 seconds
......@@ -8,8 +8,6 @@
owner: root
group: root
mode: '0755'
tags:
- lvm-snapshots
- name: ensure our deploy key is present
copy:
......@@ -19,8 +17,6 @@
group: root
mode: '0600'
no_log: true
tags:
- lvm-snapshots
- name: ensure our public deploy key is present
copy:
......@@ -30,8 +26,6 @@
group: root
mode: '0644'
no_log: true
tags:
- lvm-snapshots
- name: ensure we have our lvm-snapshots ssh config
copy:
......@@ -40,8 +34,6 @@
owner: root
group: root
mode: '0644'
tags:
- lvm-snapshots
- name: ensure our lvm-snapshots ssh config is included
lineinfile:
......@@ -51,15 +43,13 @@
owner: root
group: root
mode: '0644'
tags:
- lvm-snapshots
- name: ensure we have the program
git:
repo: git@git.fsmpi.rwth-aachen.de:infra/lvm-snapshots.git
dest: "{{ program_dir }}"
tags:
- lvm-snapshots
environment:
TMPDIR: /root/.ansible/tmp
- name: ensure the necessary programs are installed
apt:
......@@ -67,16 +57,12 @@
- python3
- virtualenv
state: present
tags:
- lvm-snapshots
- name: ensure we have a virtualenv
pip:
requirements: "{{ program_dir }}/requirements.txt"
virtualenv: "{{ program_dir }}"
virtualenv_python: python3
tags:
- lvm-snapshots
- name: ensure we have a frontend script
template:
......@@ -85,8 +71,6 @@
owner: root
group: root
mode: '0755'
tags:
- lvm-snapshots
- name: ensure we have our config
template:
......@@ -95,13 +79,16 @@
owner: root
group: root
mode: '0644'
tags:
- lvm-snapshots
- name: ensure we have a cron job
cron:
name: "lvm-snapshots"
minute: "*/{{ snapshot_cron_minutes }}"
job: "/usr/local/sbin/lvm-snapshots update"
tags:
- lvm-snapshots
- name: ensure /etc/lvm/archive does not overflow
cron:
name: "lvm archive cleanup"
hour: "0"
minute: "0"
job: 'find /etc/lvm/archive -name "*.vg" -mtime +7 -delete'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment