-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensu Redis - Support boolean redis_tls parameter (cont #967) #969
Conversation
|
Worth noting testing with |
| context "with redis_tls specified as #{value}" do | ||
| let(:params) { { :redis_tls => value } } | ||
|
|
||
| it { should contain_sensu_redis_config('testhost.domain.com').with_tls(value) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is false doesn't the provider delete the tls key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but this just tests the parameter getting passed to sensu_redis_config resource which is either true or false. This doesn't test the provider behavior.
|
@jaredledvina Could you please confirm this works for you. |
|
@ghoneycutt - Yep, I'm AFK but will check once I'm back at a computer (probably early AM Tuesday). Thanks! |
|
Alright, sorry for the delay, I applied this branch to our internal version of the module and undid my forked changes. Gave it a run on our Sensu instances and it works like a charm. > cat /etc/sensu/conf.d/redis.json
{
"redis": {
"port": 6379,
"host": "SNIP",
"password": "SNIP",
"reconnect_on_error": true,
"db": 0,
"auto_reconnect": true,
"tls": {
}
}
}Amazing, thanks so much @treydock and @ghoneycutt ! |
|
Released in v2.54.0 |
Pull Request Checklist
Description
Add on to work in #967
Related Issue
Fixes #900 and extends #967 .
Motivation and Context
Ensure
redis_tlsis a proper boolean property and ensure the provider is checking the symbol value.How Has This Been Tested?
I modified
tests/sensu-server.ppto addredis_tls => true:Resulting config:
General
New parameters are documented
New parameters have tests
Tests pass -
bundle exec rake validate lint spec