Add possibility to install `libs` dependancies.
This commit is contained in:
parent
514293bfc1
commit
d32d9aeedd
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
* Add possibility to install `mq` dependancies.
|
* Add possibility to install `mq` dependancies.
|
||||||
|
* Add possibility to install `libs` dependancies.
|
||||||
|
|
||||||
## v1.0.1
|
## v1.0.1
|
||||||
|
|
||||||
|
|
|
@ -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_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_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_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_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`].
|
* **xymon_plug_libs_tpl** : Template used to generate the previous config file [default : `etc/xymon/clientlaunch.d/libs.cfg.j2`].
|
||||||
|
|
||||||
|
|
|
@ -27,5 +27,6 @@ xymon_plug_mq_package: [ 'libtimedate-perl' ]
|
||||||
xymon_plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
|
xymon_plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
|
||||||
xymon_plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'
|
xymon_plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'
|
||||||
xymon_plug_libs_state: true
|
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_path: '/etc/xymon/clientlaunch.d/libs.cfg'
|
||||||
xymon_plug_libs_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'
|
xymon_plug_libs_tpl: 'etc/xymon/clientlaunch.d/libs.cfg.j2'
|
||||||
|
|
|
@ -63,6 +63,15 @@
|
||||||
when: xymon_plug_manage
|
when: xymon_plug_manage
|
||||||
notify: restart xymon-client service
|
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
|
- name: PLUGIN libs
|
||||||
template:
|
template:
|
||||||
src: '{{ xymon_plug_libs_tpl }}'
|
src: '{{ xymon_plug_libs_tpl }}'
|
||||||
|
|
Loading…
Reference in New Issue