Add possibility to install `libs` dependancies.

This commit is contained in:
Jeremy Gardais 2018-02-08 16:07:22 +01:00
parent 514293bfc1
commit d32d9aeedd
4 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
## Enhancements
* Add possibility to install `mq` dependancies.
* Add possibility to install `libs` dependancies.
## v1.0.1

View File

@ -32,6 +32,7 @@ Manage Xymon (client) installation and configuration.
* **xymon_plug_mq_path**: Configuration file for the `mq` plugin [default: `/etc/xymon/clientlaunch.d/mq.cfg`].
* **xymon_plug_mq_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/mq.cfg.j2`].
* **xymon_plug_libs_state**: The state of plugin `libs` [default: `true`].
* **xymon_plug_libs_package**: The packages to install to provide `libs` plugin [default: `[ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libsort-naturally-perl' ]`].
* **xymon_plug_libs_path**: Configuration file for the `libs` plugin [default: `/etc/xymon/clientlaunch.d/libs.cfg`].
* **xymon_plug_libs_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/libs.cfg.j2`].

View File

@ -27,5 +27,6 @@ xymon_plug_mq_package: [ 'libtimedate-perl' ]
xymon_plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
xymon_plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'
xymon_plug_libs_state: true
xymon_plug_libs_package: [ 'binutils', 'lsof', 'libyaml-tiny-perl', 'libsort-naturally-perl' ]
xymon_plug_libs_path: '/etc/xymon/clientlaunch.d/libs.cfg'
xymon_plug_libs_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'

View File

@ -63,6 +63,15 @@
when: xymon_plug_manage
notify: restart xymon-client service
- name: PLUGIN libs packages
package:
name: '{{ item }}'
state: '{{ "present" if xymon_plug_libs_state else "absent" }}'
with_items:
- '{{ xymon_plug_libs_package }}'
when: xymon_plug_manage
notify: restart xymon-client service
- name: PLUGIN libs
template:
src: '{{ xymon_plug_libs_tpl }}'