feat: add a debug mode with sensu_no_log variable

This commit is contained in:
Adrien Waksberg 2019-03-14 07:44:09 +01:00
parent dbee6d7a71
commit c201ae66fb
4 changed files with 12 additions and 8 deletions

View file

@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
- feat: add a debug mode with sensu_no_log variable
- feat: add mutators
- feat: add sensu_agent_redact variable to add new redact keywords
- doc: add example in readme

View file

@ -67,6 +67,7 @@ Notice: for debian9 set `sensu_repository_system` to `ubuntu` and `sensu_reposit
### 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_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

View file

@ -2,6 +2,8 @@
sensu_agent: yes
sensu_backend: no
sensu_no_log: true
sensu_repository_system: '{{ ansible_distribution|lower }}'
sensu_repository_release: '{{ ansible_distribution_release }}'

View file

@ -48,7 +48,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_users }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage cluster roles
@ -61,7 +61,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_cluster_roles }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage namespaces
@ -73,7 +73,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_namespaces }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage assets
@ -88,7 +88,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_assets }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage filters
@ -104,7 +104,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_filters }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage mutators
@ -118,7 +118,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_mutators }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage handlers
@ -134,7 +134,7 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_handlers }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu
- name: manage checks
@ -152,5 +152,5 @@
api_password: '{{ sensu_api_password }}'
loop: '{{ sensu_checks }}'
run_once: true
no_log: true
no_log: '{{ sensu_no_log }}'
tags: sensu