drbd-utils/kvm-host: store plugins in /etc/munin/plugins
Let's keep /usr alone and save our custom plugins in /etc until we decide on a better convention.
This commit is contained in:
parent
0cfcd31946
commit
ecf20b436b
|
@ -1,23 +1,12 @@
|
||||||
---
|
---
|
||||||
- file:
|
|
||||||
path: '/usr/local/share/munin/plugins/'
|
|
||||||
state: directory
|
|
||||||
mode: 02755
|
|
||||||
|
|
||||||
- name: Get Munin plugin
|
- name: Get Munin plugin
|
||||||
get_url:
|
get_url:
|
||||||
url: 'https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/drbd/drbd'
|
url: 'https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/drbd/drbd'
|
||||||
dest: '/usr/local/share/munin/plugins/'
|
dest: '/etc/munin/plugins/'
|
||||||
mode: 0755
|
mode: 0755
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
- name: Activate Munin plugin
|
|
||||||
file:
|
|
||||||
src: "/usr/local/share/munin/plugins/drbd"
|
|
||||||
dest: "/etc/munin/plugins/drbd"
|
|
||||||
state: link
|
|
||||||
notify: restart munin-node
|
|
||||||
|
|
||||||
- name: Copy Munin plugin conf
|
- name: Copy Munin plugin conf
|
||||||
copy:
|
copy:
|
||||||
src: files/munin-plugins
|
src: files/munin-plugins
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
---
|
---
|
||||||
- name: Create Munin plugins directory
|
|
||||||
file:
|
|
||||||
path: "/usr/local/share/munin/plugins/"
|
|
||||||
state: directory
|
|
||||||
mode: 02755
|
|
||||||
|
|
||||||
- name: Get Munin plugins
|
- name: Get Munin plugins
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/virtualization/{{ item }}"
|
url: "https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/virtualization/{{ item }}"
|
||||||
dest: "/usr/local/share/munin/plugins/"
|
dest: "/etc/munin/plugins/"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- kvm_cpu
|
- kvm_cpu
|
||||||
|
@ -16,17 +11,6 @@
|
||||||
- kvm_mem
|
- kvm_mem
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
- name: Activate Munin plugins
|
|
||||||
file:
|
|
||||||
src: "/usr/local/share/munin/plugins/{{ item }}"
|
|
||||||
dest: "/etc/munin/plugins/{{ item }}"
|
|
||||||
state: link
|
|
||||||
with_items:
|
|
||||||
- kvm_cpu
|
|
||||||
- kvm_io
|
|
||||||
- kvm_mem
|
|
||||||
notify: restart munin-node
|
|
||||||
|
|
||||||
- name: Copy Munin plugins conf
|
- name: Copy Munin plugins conf
|
||||||
copy:
|
copy:
|
||||||
src: files/munin-plugins
|
src: files/munin-plugins
|
||||||
|
|
Loading…
Reference in a new issue