Manage `xymon-client` service.
This commit is contained in:
parent
02fa5301e0
commit
6ef35930c7
|
@ -3,3 +3,4 @@
|
|||
|
||||
### Features
|
||||
* Install `xymon-client` packages for Debian based distros.
|
||||
* Manage `xymon-client` service.
|
||||
|
|
|
@ -17,6 +17,9 @@ Manage Xymon (client) installation and configuration.
|
|||
|
||||
* **xymon_cli_manage** : If `xymon-client` should be managed with this role [default : `true`].
|
||||
* **xymon_cli_pkg_state** : State of new `xymon-client` package(s) [default : `installed`].
|
||||
* **xymon_cli_service_manage** : If `xymon-client` service should be managed with this role [default : `true`].
|
||||
* **xymon_cli_service_name** : `xymon-client` service name [default : `xymon-client`].
|
||||
* **xymon_cli_service_enabled** : Set `xymon-client` service available at startup [default : `true`].
|
||||
|
||||
### OS Specific Variables
|
||||
|
||||
|
@ -38,6 +41,7 @@ Please see default value by Operating System file in [vars][vars directory] dire
|
|||
|
||||
This role will :
|
||||
* Install needed packages to provide `xymon-client`.
|
||||
* Manage `xymon-client` service.
|
||||
|
||||
## Development
|
||||
|
||||
|
|
|
@ -2,5 +2,11 @@
|
|||
# defaults file for ipr.ansible.xymon
|
||||
|
||||
# client
|
||||
## packages
|
||||
xymon_cli_manage: true
|
||||
xymon_cli_pkg_state: 'installed'
|
||||
|
||||
## service
|
||||
xymon_cli_service_manage: true
|
||||
xymon_cli_service_name: 'xymon-client'
|
||||
xymon_cli_service_enabled: true
|
||||
|
|
|
@ -17,4 +17,11 @@
|
|||
- '{{ xymon_cli_pkg_list }}'
|
||||
when: xymon_cli_manage
|
||||
|
||||
## service
|
||||
- name: SERVICE manage '{{ xymon_cli_service_name }}'
|
||||
service:
|
||||
name: '{{ xymon_cli_service_name }}'
|
||||
state: started
|
||||
enabled: '{{ xymon_cli_service_enabled }}'
|
||||
when: xymon_cli_service_manage
|
||||
# }}}
|
||||
|
|
Loading…
Reference in New Issue