-
Notifications
You must be signed in to change notification settings - Fork 133
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
Bug: unable to use override to disable module #208
Comments
opened #209 to fix |
This is strange, even before #209 it should work with overrides. I'll try to reproduce it |
@ekelson-bcove can you maybe elaborate a bit how you was setting the override value? Was it in some wrapper cookbook? In some recipe or in the attribute file? |
I was using a wrapper cookbook. Attributes should be defined in the attribute file anyway (proper pattern). I was unable to successfully override the vaule..even with node.override... example:
|
@ekelson-bcove thanks!
Usually yes, I totally agree. However, there are also some edge cases which force you to use recipes for this purpose. I can't really reproduce this behaviour, please see this repository for my test environment. What I see, it basically works as expected:
I try now to add os-hardening 3.0.0 cookbook to this test setup and see how it behaves with your settings |
@ekelson-bcove I added os-hardening to this test setup and tried it with IPv6 (please see the branch os-hardening, overriding works for me fine for both attributes and recipes. Can you please have a look? I guess here is something different to your setup |
It’s very possible. I will try again.
…On Fri, Jun 29, 2018 at 7:43 AM Artem Sidorenko ***@***.***> wrote:
@ekelson-bcove <https://github.com/ekelson-bcove> I added os-hardening to
this test setup and tried it with IPv6 (please see the branch os-hardening
<https://github.com/artem-experiments/chef-override-test/tree/os-hardening>,
overriding works for me fine for both attributes and recipes. Can you
please have a look? I guess here is something different to your setup
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#208 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATxPay7QHknKpS0vsaA9AY4GrcSrQoCLks5uBhL2gaJpZM4TgWpz>
.
|
@ekelson-bcove I'm closing this: I could not reproduce it, Nevertheless the PR #209 is merged. Feel free to reopen if needed |
Thanks!
…On Tue, Jul 17, 2018 at 5:22 AM Artem Sidorenko ***@***.***> wrote:
Closed #208 <#208>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#208 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATxPa6cPr2tW99SVpwI47SjAmgTnz9Fvks5uHazLgaJpZM4TgWpz>
.
|
I confirm this... Overrides don't seem to work. This is super strange. |
Bug: node.override['os-hardening']['components'][package] does not work.
How to reproduce:
node.override['os-hardening']['components']['login_defs] = false should result in no alteration of /etc/login.defs. When attempted, login_defs.rb is still executed.
Suspected issue:
https://github.com/dev-sec/chef-os-hardening/blob/master/recipes/default.rb#L31-L33
The setting of the components state should occur in the attribute file so you can override them.
The text was updated successfully, but these errors were encountered: