Add the possibility to manage 'xymon' user's groups.
This commit is contained in:
parent
f6a61e107b
commit
3741af19bc
|
@ -1,4 +1,9 @@
|
|||
|
||||
## v1.x
|
||||
|
||||
### Features
|
||||
* Add the possibility to manage 'xymon' user's groups.
|
||||
|
||||
## v1.0
|
||||
|
||||
### Features
|
||||
|
|
|
@ -20,6 +20,7 @@ Manage Xymon (client) installation and configuration.
|
|||
* **xymon_cli_default_conf_path** : Configuration file for `xymon-client` [default : `/etc/default/xymon-client`].
|
||||
* **xymon_cli_default_conf_tpl** : Template used to generate the previous config file [default : `etc/default/xymon-client.j2`].
|
||||
* **xymon_cli_hostname** : Allow to override default value of CLIENTHOSTNAME var [default : `{{ ansible_fqdn }}`].
|
||||
* **xymon_user_groups** : List of 'xymon' user's groups [default : `xymon`].
|
||||
* **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`].
|
||||
|
@ -46,6 +47,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` configuration and service.
|
||||
* Add 'xymon' user to new groups.
|
||||
|
||||
## Development
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ xymon_cli_pkg_state: 'installed'
|
|||
xymon_cli_default_conf_path: '/etc/default/xymon-client'
|
||||
xymon_cli_default_conf_tpl: 'etc/default/xymon-client.j2'
|
||||
xymon_cli_hostname: "{{ ansible_fqdn }}"
|
||||
xymon_user_groups: 'xymon'
|
||||
|
||||
## service
|
||||
xymon_cli_service_manage: true
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
- '{{ xymon_cli_pkg_list }}'
|
||||
when: xymon_cli_manage
|
||||
|
||||
- name: CONFIG xymon-client
|
||||
- name: CONFIG xymon-client service
|
||||
template:
|
||||
src: '{{ xymon_cli_default_conf_tpl }}'
|
||||
dest: '{{ xymon_cli_default_conf_path }}'
|
||||
|
@ -28,6 +28,12 @@
|
|||
when: xymon_cli_manage
|
||||
notify: restart xymon-client service
|
||||
|
||||
- name: CONFIG xymon user's groups
|
||||
user:
|
||||
name: xymon
|
||||
groups: '{{ xymon_user_groups }}'
|
||||
notify: restart xymon-client service
|
||||
|
||||
## service
|
||||
- name: SERVICE manage '{{ xymon_cli_service_name }}'
|
||||
service:
|
||||
|
|
Loading…
Reference in New Issue