feat: add a debug mode with sensu_no_log variable
This commit is contained in:
parent
dbee6d7a71
commit
c201ae66fb
4 changed files with 12 additions and 8 deletions
|
@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
- feat: add a debug mode with sensu_no_log variable
|
||||||
- feat: add mutators
|
- feat: add mutators
|
||||||
- feat: add sensu_agent_redact variable to add new redact keywords
|
- feat: add sensu_agent_redact variable to add new redact keywords
|
||||||
- doc: add example in readme
|
- doc: add example in readme
|
||||||
|
|
|
@ -67,6 +67,7 @@ Notice: for debian9 set `sensu_repository_system` to `ubuntu` and `sensu_reposit
|
||||||
|
|
||||||
### Backend
|
### Backend
|
||||||
|
|
||||||
|
* `sensu_no_log` - you can disable ansible no_log to print the errors with the backend api (default: `true`)
|
||||||
* `sensu_backend` - enable sensu backend installation (default: `no`)
|
* `sensu_backend` - enable sensu backend installation (default: `no`)
|
||||||
* `sensu_backend_config` - hash with the optional configuration ([see sensu configuration](https://docs.sensu.io/sensu-go/latest/reference/backend/))
|
* `sensu_backend_config` - hash with the optional configuration ([see sensu configuration](https://docs.sensu.io/sensu-go/latest/reference/backend/))
|
||||||
* `sensu_assets` - array with the asset definitions
|
* `sensu_assets` - array with the asset definitions
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
sensu_agent: yes
|
sensu_agent: yes
|
||||||
sensu_backend: no
|
sensu_backend: no
|
||||||
|
|
||||||
|
sensu_no_log: true
|
||||||
|
|
||||||
sensu_repository_system: '{{ ansible_distribution|lower }}'
|
sensu_repository_system: '{{ ansible_distribution|lower }}'
|
||||||
sensu_repository_release: '{{ ansible_distribution_release }}'
|
sensu_repository_release: '{{ ansible_distribution_release }}'
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_users }}'
|
loop: '{{ sensu_users }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage cluster roles
|
- name: manage cluster roles
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_cluster_roles }}'
|
loop: '{{ sensu_cluster_roles }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage namespaces
|
- name: manage namespaces
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_namespaces }}'
|
loop: '{{ sensu_namespaces }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage assets
|
- name: manage assets
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_assets }}'
|
loop: '{{ sensu_assets }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage filters
|
- name: manage filters
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_filters }}'
|
loop: '{{ sensu_filters }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage mutators
|
- name: manage mutators
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_mutators }}'
|
loop: '{{ sensu_mutators }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage handlers
|
- name: manage handlers
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_handlers }}'
|
loop: '{{ sensu_handlers }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: manage checks
|
- name: manage checks
|
||||||
|
@ -152,5 +152,5 @@
|
||||||
api_password: '{{ sensu_api_password }}'
|
api_password: '{{ sensu_api_password }}'
|
||||||
loop: '{{ sensu_checks }}'
|
loop: '{{ sensu_checks }}'
|
||||||
run_once: true
|
run_once: true
|
||||||
no_log: true
|
no_log: '{{ sensu_no_log }}'
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
Loading…
Reference in a new issue