Possibility to allow some pkgs not from repos

For apt probe.
This commit is contained in:
Jeremy Gardais 2018-09-12 10:25:31 +02:00
parent 5cfa7c518c
commit 6403124985
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
5 changed files with 29 additions and 0 deletions

View File

@ -2,6 +2,7 @@
### Enhancements ### Enhancements
* Add IPMI probe. * Add IPMI probe.
* Add possibility to allow some packages not installed from repos for apt probe.
### Fix ### Fix
* Deprecation warning about "installed" for state. * Deprecation warning about "installed" for state.

View File

@ -31,6 +31,10 @@ Manage Xymon (client) installation and configuration.
* **xymon_plug_apt_package**: The packages to install to provide `apt` plugin [default: `[ 'libtimedate-perl' ]`]. * **xymon_plug_apt_package**: The packages to install to provide `apt` plugin [default: `[ 'libtimedate-perl' ]`].
* **xymon_plug_apt_path**: Configuration file for the `apt` plugin [default: `/etc/xymon/clientlaunch.d/apt.cfg`]. * **xymon_plug_apt_path**: Configuration file for the `apt` plugin [default: `/etc/xymon/clientlaunch.d/apt.cfg`].
* **xymon_plug_apt_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/apt.cfg.j2`]. * **xymon_plug_apt_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/apt.cfg.j2`].
* **xymon_plug_apt_default_whitelist: Default list of allowed packages not installed from repositories [default: `[]`].
* **xymon_plug_apt_whitelist: All hosts list of allowed packages not installed from repositories [default: `[]`].
* **xymon_plug_apt_group_whitelist: Group list of allowed packages not installed from repositories [default: `[]`].
* **xymon_plug_apt_host_whitelist: Host list of allowed packages not installed from repositories [default: `[]`].
* **xymon_plug_mq_state**: The state of plugin `mq` [default: `true`]. * **xymon_plug_mq_state**: The state of plugin `mq` [default: `true`].
* **xymon_plug_mq_package**: The packages to install to provide `mq` plugin [default: `[ 'libtimedate-perl' ]`]. * **xymon_plug_mq_package**: The packages to install to provide `mq` plugin [default: `[ 'libtimedate-perl' ]`].
* **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`].

View File

@ -53,6 +53,15 @@ xymon_plug_apt_state: true
xymon_plug_apt_package: ['dctrl-tools'] xymon_plug_apt_package: ['dctrl-tools']
xymon_plug_apt_path: '/etc/xymon/clientlaunch.d/apt.cfg' xymon_plug_apt_path: '/etc/xymon/clientlaunch.d/apt.cfg'
xymon_plug_apt_tpl: 'etc/xymon/clientlaunch.d/apt.cfg.j2' xymon_plug_apt_tpl: 'etc/xymon/clientlaunch.d/apt.cfg.j2'
xymon_plug_apt_default_whitelist: []
xymon_plug_apt_whitelist: []
xymon_plug_apt_group_whitelist: []
xymon_plug_apt_host_whitelist: []
xymon_plug_apt_combined_whitelist: '{{ xymon_plug_apt_default_whitelist
+ xymon_plug_apt_whitelist
+ xymon_plug_apt_group_whitelist
+ xymon_plug_apt_host_whitelist }}'
## ]]] ## ]]]
## Plugin mq [[[ ## Plugin mq [[[
xymon_plug_mq_state: true xymon_plug_mq_state: true

View File

@ -70,6 +70,17 @@
xymon_plug_manage|bool) xymon_plug_manage|bool)
notify: restart xymon-client service notify: restart xymon-client service
- name: PLUGIN apt no_repo_accept whitelist
template:
src: 'etc/xymon/apt_no_repo_accept.j2'
dest: '/etc/xymon/apt_no_repo_accept'
owner: root
group: root
mode: 0644
when: (xymon_cli_manage|bool and
xymon_plug_manage|bool)
notify: restart xymon-client service
# Manage mq plugin [[[1 # Manage mq plugin [[[1
- name: PLUGIN mq packages - name: PLUGIN mq packages
package: package:

View File

@ -0,0 +1,4 @@
# {{ ansible_managed }}
{% for package in xymon_plug_apt_combined_whitelist %}
{{ package }}
{% endfor %}