Some yamllint fix
This commit is contained in:
parent
9b7c3b9003
commit
9bde39da78
|
@ -5,6 +5,7 @@
|
|||
* Ensure to not override groups of 'xymon' user.
|
||||
* Add possibility to install `apt` plugin dependencies.
|
||||
* Ensure to apply the config only if wanted.
|
||||
* Some yamllint fix.
|
||||
|
||||
## v1.1
|
||||
|
||||
|
|
|
@ -1,10 +1,33 @@
|
|||
---
|
||||
# defaults file for ipr.ansible.xymon
|
||||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
|
||||
# client
|
||||
## packages
|
||||
# ipr.ansible.xymon default variables [[[
|
||||
# =======================================
|
||||
|
||||
# Packages and installation [[[
|
||||
# -----------------------------
|
||||
|
||||
# .. envvar:: xymon_cli_manage [[[
|
||||
#
|
||||
# If this role should manage the installation of Xymon client
|
||||
xymon_cli_manage: true
|
||||
# ]]]
|
||||
# .. envvar:: xymon_cli_pkg_state [[[
|
||||
#
|
||||
# What is the desired state which this role's packages should be?
|
||||
# Possible options:
|
||||
#
|
||||
# ``installed``
|
||||
# Default. Ensure the packages are installed.
|
||||
#
|
||||
# ``absent``
|
||||
# Ensure to remove the packages.
|
||||
#
|
||||
xymon_cli_pkg_state: 'installed'
|
||||
# ]]]
|
||||
# ]]]
|
||||
# Server configuration and service [[[
|
||||
# ------------------------------------
|
||||
|
||||
## conf
|
||||
xymon_cli_default_conf_path: '/etc/default/xymon-client'
|
||||
|
@ -19,26 +42,26 @@ xymon_cli_service_enabled: true
|
|||
|
||||
# server
|
||||
xymon_srv_list: "monitoring.{{ ansible_domain }}"
|
||||
# ]]]
|
||||
# Plugins management [[[
|
||||
# ----------------------
|
||||
|
||||
# plugins {{{
|
||||
# plugins [[[
|
||||
xymon_plug_manage: true
|
||||
|
||||
## apt {{{
|
||||
xymon_plug_apt_state: True
|
||||
## Plugin apt [[[
|
||||
xymon_plug_apt_state: true
|
||||
xymon_plug_apt_package: ['dctrl-tools']
|
||||
xymon_plug_apt_path: '/etc/xymon/clientlaunch.d/apt.cfg'
|
||||
xymon_plug_apt_tpl: 'etc/xymon/clientlaunch.d/apt.cfg.j2'
|
||||
|
||||
## }}}
|
||||
|
||||
## mq {{{
|
||||
## ]]]
|
||||
## Plugin mq [[[
|
||||
xymon_plug_mq_state: true
|
||||
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'
|
||||
## }}}
|
||||
|
||||
# libs {{{
|
||||
## ]]]
|
||||
## Plugin libs [[[
|
||||
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'
|
||||
|
@ -56,6 +79,8 @@ xymon_plug_libs_default_whitelist:
|
|||
xymon_plug_libs_group_whitelist: {}
|
||||
xymon_plug_libs_host_whitelist: {}
|
||||
|
||||
## }}}
|
||||
#
|
||||
# }}}
|
||||
## ]]]
|
||||
# ]]]
|
||||
|
||||
# ]]]
|
||||
# ]]]
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||
#
|
||||
# tasks file for ipr.ansible.xymon
|
||||
|
||||
- name: Load specific OS vars for xymon
|
||||
|
@ -8,7 +10,7 @@
|
|||
- "{{ ansible_distribution|lower }}.yml"
|
||||
- "{{ ansible_os_family|lower }}.yml"
|
||||
|
||||
# client {{{
|
||||
# Manage required client packages [[[1
|
||||
- name: client package
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
|
@ -17,6 +19,7 @@
|
|||
- '{{ xymon_cli_pkg_list }}'
|
||||
when: xymon_cli_manage|bool
|
||||
|
||||
# Manage client configuration [[[1
|
||||
- name: CONFIG xymon-client service
|
||||
template:
|
||||
src: '{{ xymon_cli_default_conf_tpl }}'
|
||||
|
@ -32,11 +35,11 @@
|
|||
user:
|
||||
name: xymon
|
||||
groups: '{{ xymon_user_groups }}'
|
||||
append: True
|
||||
append: true
|
||||
when: xymon_cli_manage|bool
|
||||
notify: restart xymon-client service
|
||||
|
||||
## service
|
||||
# Manage service [[[1
|
||||
- name: SERVICE manage '{{ xymon_cli_service_name }}'
|
||||
service:
|
||||
name: '{{ xymon_cli_service_name }}'
|
||||
|
@ -44,9 +47,8 @@
|
|||
enabled: '{{ xymon_cli_service_enabled }}'
|
||||
when: (xymon_cli_manage|bool and
|
||||
xymon_cli_service_manage|bool)
|
||||
# }}}
|
||||
|
||||
# plugins {{{
|
||||
# Manage apt plugin [[[1
|
||||
- name: PLUGIN apt packages
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
|
@ -68,6 +70,7 @@
|
|||
xymon_plug_manage|bool)
|
||||
notify: restart xymon-client service
|
||||
|
||||
# Manage mq plugin [[[1
|
||||
- name: PLUGIN mq packages
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
|
@ -89,6 +92,7 @@
|
|||
xymon_plug_manage|bool)
|
||||
notify: restart xymon-client service
|
||||
|
||||
# Manage libs plugin [[[1
|
||||
- name: PLUGIN libs packages
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
|
@ -121,4 +125,3 @@
|
|||
xymon_plug_manage|bool)
|
||||
notify: restart xymon-client service
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in New Issue