-
Notifications
You must be signed in to change notification settings - Fork 183
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
Support rich datatypes and deferred password values #515
Conversation
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.
It would be nice to have some sort of test for this. Looking at the rspec-puppet source it should support Deferred
.
And taking a step back, this feels like Sensitive
where EPP itself should take care of it.
Tests fail for unrelated reason - resolved in #516 |
421e3d1
to
b51376d
Compare
Could not see anyway to do something along the lines of: describe 'with parameter requirepass resolved from a Deferred' do
let(:params) do
{
requirepass: Deferred('sprintf',['%s', '_VALUE_']),
}
end
it {
is_expected.to contain_file(config_file_orig).with(
'content' => sensitive(%r{requirepass.*_VALUE_})
)
}
end
Not sure I follow. We already test that if requirepass is Sensitive that the content of resulting config file is also marked Sensitive. |
b51376d
to
ad8e019
Compare
I was suggesting that Puppet itself should take care of this, just like it can unwrap sensitive. Pushing that responsibility to modules is likely to cause problem somewhere. Of course it doesn't hold this PR back, maybe more ranting. |
Process the configuration file `redis.conf` template twice if some of the templates values are deferred. Currently with deferred values the resulting deferred template cannot be processed since it contains complex datatypes from stdlib in particular. This is a redis specific solution that may arrive genraly one day in puppetlabs/puppetlabs-stdlib#1425
1bed1c6
to
0e2d97e
Compare
CentOS 9 is a timeout. |
Pull Request (PR) description
Process the configuration file
redis.conf
template twice if some of the templates values are deferred.Currently with deferred values the resulting deferred template cannot be processed since it contains
complex datatypes from stdlib in particular.
This is a redis specific solution that may arrive generally one day in puppetlabs/puppetlabs-stdlib#1425
This Pull Request (PR) fixes the following issues
Fixes #513