-
Notifications
You must be signed in to change notification settings - Fork 42
aix_chsec simplification #88
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
Conversation
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
2d8736f to
785486d
Compare
metadata.rb
Outdated
| description 'Custom resources useful for AIX systems' | ||
| long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
| version '2.2.0' | ||
| version '2.2.1' |
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.
please don't update the metadata version information.
|
@msgarbossa could you take a look at this PR and give your feedback if you have time? Thanks so much. |
resources/chsec.rb
Outdated
| property :attributes, Hash | ||
| property :stanza, String, desired_state: false | ||
| property :attributes, Hash, required: true | ||
| property :stanza, String, desired_state: false, required: true |
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.
converting properties to required would be a major change as it would break folks using this resource previously who didn't have it included in their wrapper
resources/chsec.rb
Outdated
| change = true | ||
| chsec_s = chsec_s << " -a \"#{key}=#{new_resource.attributes[key]}\"" | ||
| end | ||
| nr = @new_resource |
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.
nr isn't a great name to use as it obscures what's happening throughout the resource.
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.
Changes as specified in comments please.
Remove requirement on properties Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
Remove requirement on properties Merge branch 'Chef13upgrade' of https://github.com/srctarget/aix.git into Chef13upgrade
Signed-off-by: Daniel Hebert <dhebert@us.ibm.com>
|
I reverted the requirements on the properties and the version in the metadata.rb file. Also re-factored nr to be new_res. |
|
This breaks when I test the chsec resource in a recipe with the following for setting default password policy: I get the following error: I believe the issue is with lines 45 and 46. new_resource and current_resource do not seem to be evaluating inside a def. |
|
@srctarget Thanks for pulling this together, but there's still a merge conflict with master. If you want to get that cleared up I can merge this in. |
|
Going to close this. Thank you. |
Description
This is bringing forward some of the changes (Descriptions included below) from #59 :
Simplify
aix_chsecmake attributes and stanza properties required for
aix_chsecVersion bump to 2.2.1
Would close PR #59 with this PR
Issues Resolved
see above, non-documented but experienced in local testing
Check List