Skip to content
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

Expose list of packages to remove as an attribute #99

Merged
merged 2 commits into from
Nov 25, 2015

Conversation

mikemoate
Copy link
Member

This follows on from my recent pull request for #90

This exposes the list of packages to be removed by the cookbook as an attribute, with the default value of that attribute preserving the existing behaviour (i.e. creates a customisation point without a breaking change).

My primary reason for exposing this was to allow users of the cookbook to override this list should it be needed (in our specific case, we have an nagios monitoring agent that requires xinetd, which we have then taken further steps to harden) without needing to fork the cookbook.

A secondary reason is that it may make unit testing this functionality (which I am looking at for a subsequent pull request) easier.

I wasn't sure on style for README changes, so welcome any feedback.

@mikemoate
Copy link
Member Author

@Rockstar04 seemed to agree having this attribute controlled was a sensible next step. Hopefully @chris-rock was vaguely expecting this from my comments on #93 :-)

@chris-rock
Copy link
Member

@mikemoate this is great. I like that this is configurable. Please rebase to the latest master and I will merge it!

mikemoate and others added 2 commits November 24, 2015 22:59
This gives users some flexibility to remove additional packages or keep
some of these packages if they have valid reasons, whilst preserving the
good default behaviour.
Document the attribute controlling the list of packages to remove,
including the default value (which preserves the existing behaviour).
@mikemoate mikemoate force-pushed the packages_as_attribute branch from 1d3185f to 7fdf932 Compare November 24, 2015 22:59
@mikemoate
Copy link
Member Author

@chris-rock rebased and CI is in progress. I'm still looking at testing for this functionality, hopefully I'll find some time at the weekend.

Any thoughts on when a new version of this cookbook might be released to the supermarket?

@chris-rock
Copy link
Member

Great work @mikemoate I am going to release a new version by end of the week.

chris-rock added a commit that referenced this pull request Nov 25, 2015
Expose list of packages to remove as an attribute
@chris-rock chris-rock merged commit 6a24b7f into dev-sec:master Nov 25, 2015
@mikemoate mikemoate deleted the packages_as_attribute branch November 25, 2015 10:08
rollbrettler pushed a commit to rollbrettler/chef-os-hardening that referenced this pull request Sep 16, 2016
x11 forwarding should be configurable like tcp and agent forwarding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants