Use default Sensu redact

By default sensu-puppet is overring default list of varibles which should
be redacted. This patch enables to configure redact list and uses default
value given by [1]. This patch also serves as a workaround until [2]
is merged in the module itself (or in case it won't get merged).

[1] https://sensuapp.org/docs/0.24/reference/clients.html
[2] https://github.com/sensu/sensu-puppet/pull/580

Closes-Bug: #1641080
Closes-Bug: rhbz#1392473
Change-Id: I21201f734d2fbf5f571091603126cf11cfdd8c40
This commit is contained in:
Martin Mágr 2016-11-08 10:04:41 +01:00
parent eab3b9f72e
commit c921b15c90
1 changed files with 14 additions and 3 deletions

View File

@ -43,7 +43,19 @@ parameters:
description: The RabbitMQ vhost used for monitoring purposes.
type: string
default: '/sensu'
SensuRedactVariables:
description: Variables from Sensu configuration, which have to be redacted.
type: array
default:
- password
- passwd
- pass
- api_key
- api_token
- access_key
- secret_key
- private_key
- secret
outputs:
role_data:
@ -61,8 +73,7 @@ outputs:
sensu::rabbitmq_ssl: {get_param: MonitoringRabbitUseSSL}
sensu::rabbitmq_user: {get_param: MonitoringRabbitUserName}
sensu::rabbitmq_vhost: {get_param: MonitoringRabbitVhost}
#sensu::redis_host: {get_param: MonitoringRedisHost}
#sensu::redis_password: {get_param: MonitoringRedisPassword}
sensu::redact: {get_param: SensuRedactVariables}
sensu::sensu_plugin_provider: 'yum'
sensu::sensu_plugin_name: 'rubygem-sensu-plugin'
sensu::version: 'present'