2017-05-23 22:19:29 +02:00
|
|
|
---
|
|
|
|
- name: Install dependencies
|
|
|
|
apt:
|
|
|
|
name: libxml-parser-perl
|
|
|
|
tags: varnish
|
|
|
|
|
2017-11-07 12:18:02 +01:00
|
|
|
- include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/remount-usr
|
2017-11-07 12:18:02 +01:00
|
|
|
tags: varnish
|
2017-06-07 16:28:32 +02:00
|
|
|
|
2017-05-23 22:19:29 +02:00
|
|
|
- name: Create plugin directory
|
|
|
|
file:
|
|
|
|
name: /usr/local/share/munin/
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
tags: varnish
|
|
|
|
|
|
|
|
- name: Create plugin directory
|
|
|
|
file:
|
|
|
|
name: /usr/local/share/munin/plugins/
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
tags: varnish
|
|
|
|
|
2022-02-08 16:16:24 +01:00
|
|
|
- name: Copy varnish5 munin plugin
|
2017-05-23 22:19:29 +02:00
|
|
|
copy:
|
2022-02-08 16:16:24 +01:00
|
|
|
src: munin/varnish5_
|
2017-05-23 22:19:29 +02:00
|
|
|
dest: /usr/local/share/munin/plugins/
|
|
|
|
mode: "0755"
|
|
|
|
notify: restart munin-node
|
|
|
|
tags: varnish
|
|
|
|
|
2022-02-08 16:16:24 +01:00
|
|
|
- name: Enable varnish5 munin plugin
|
2017-05-23 22:19:29 +02:00
|
|
|
file:
|
2022-02-08 16:16:24 +01:00
|
|
|
src: /usr/local/share/munin/plugins/varnish5_
|
|
|
|
dest: "/etc/munin/plugins/varnish5_{{item}}"
|
2017-05-23 22:19:29 +02:00
|
|
|
state: link
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2017-05-23 22:19:29 +02:00
|
|
|
- memory_usage
|
2022-02-08 16:16:24 +01:00
|
|
|
- expunge
|
2017-05-23 22:19:29 +02:00
|
|
|
- objects
|
|
|
|
- request_rate
|
2022-02-08 16:16:24 +01:00
|
|
|
- mgt_uptime
|
2017-05-23 22:19:29 +02:00
|
|
|
- threads
|
2022-02-08 16:16:24 +01:00
|
|
|
- backend_traffic
|
|
|
|
- hit_rate
|
|
|
|
- main_uptime
|
2017-05-23 22:19:29 +02:00
|
|
|
- transfer_rates
|
2022-02-08 16:16:24 +01:00
|
|
|
- bad
|
|
|
|
notify: restart munin-node
|
|
|
|
tags: varnish
|
|
|
|
|
|
|
|
- name: Copy varnish5 munin plugin config
|
|
|
|
copy:
|
|
|
|
src: munin/varnish5.conf
|
|
|
|
dest: /etc/munin/plugin-conf.d/varnish5
|
|
|
|
mode: "0644"
|
2017-05-23 22:19:29 +02:00
|
|
|
notify: restart munin-node
|
|
|
|
tags: varnish
|