feat: add garage specific munin shell scripts
This commit is contained in:
23
roles/munin_client/tasks/garage.yml
Normal file
23
roles/munin_client/tasks/garage.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Put garage plugin configuration
|
||||
ansible.builtin.template:
|
||||
src: garage.j2
|
||||
dest: /etc/munin/plugin-conf.d/garage
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0640'
|
||||
|
||||
- name: Put garage scripts
|
||||
ansible.builtin.copy:
|
||||
src: "files/{{ item }}"
|
||||
dest: "/etc/munin/plugins/{{ item }}"
|
||||
owner: root
|
||||
user: root
|
||||
mode: '0755'
|
||||
notify:
|
||||
- Restart munin-node
|
||||
loop:
|
||||
- garage_bucket_objects
|
||||
- garage_bucket_size
|
||||
- garage_bucket_unfinished
|
@@ -109,12 +109,17 @@
|
||||
loop:
|
||||
- users
|
||||
|
||||
# Useless junks for hypervisors
|
||||
- name: Execute delete states for hypervisors
|
||||
ansible.builtin.include_tasks: hypervisors.yml
|
||||
when: "'hypervisors' in group_names"
|
||||
|
||||
# Specific LXC commands
|
||||
- name: Execute specific LXC commands
|
||||
ansible.builtin.include_tasks: lxc.yml
|
||||
when: ansible_facts['virtualization_type'] == "lxc"
|
||||
|
||||
# Useless junks for hypervisors
|
||||
- name: Execute delete states for hypervisors
|
||||
ansible.builtin.include_tasks: hypervisors.yml
|
||||
when: "'hypervisors' in group_names"
|
||||
# Specific garage commands
|
||||
- name: Execute specific garage commands
|
||||
ansible.builtin.include_tasks: garage.yml
|
||||
when: "'garagegw' in inventory_hostname"
|
||||
|
Reference in New Issue
Block a user