Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes sure backed up servers have rsync installed #70

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions group_vars/device_roles_container-host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
monitored_warning_total_procs: 150
1 change: 1 addition & 0 deletions group_vars/device_roles_lxd-host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
monitored_warning_total_procs: 500
6 changes: 6 additions & 0 deletions roles/backed_up/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Install rsync
apt:
name:
- rsync
state: present
become: true
- name: Add backup scripts dir
ansible.builtin.file:
path: /etc/backup-scripts
Expand Down
2 changes: 1 addition & 1 deletion roles/monitored/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
arguments: "-w 15,10,5 -c 30,25,20"
total_procs:
check: "/usr/lib/nagios/plugins/check_procs"
arguments: "-k -w 100 -c 150"
arguments: "-k -w {{ monitored_warning_total_procs | default(100) }} -c {{ ( ( monitored_warning_total_procs | default(100) ) * 1.2 ) | int }}"

Check warning on line 19 in roles/monitored/vars/main.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: -k -w {{ monitored_warning_total_procs | default(100) }} -c {{ ( ( monitored_warning_total_procs | default(100) ) * 1.2 ) | int }} -> -k -w {{ monitored_warning_total_procs | default(100) }} -c {{ ((monitored_warning_total_procs | default(100)) * 1.2) | int }}
zombie_procs:
check: "/usr/lib/nagios/plugins/check_procs"
arguments: "-w 5 -c 10 -s Z"
Expand Down
Loading