-
Notifications
You must be signed in to change notification settings - Fork 9
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 assorted rpm properties in rpmkey type #7
base: main
Are you sure you want to change the base?
Conversation
This is intended to be a proof of concept. If it's concerned a worth while feature, it should probably be modified to remove the dependency on nokogiri or have a puppet class added to ensure that libraries presence on agents. The motivation was to make it easier to determine the rpmkey resource name when writing manifests and to provide enough information when using to
|
I understand your usecase, and while I personally don't work with comments:
Let me know what you think. |
FWIW, I agree that keeping compatibility with Ruby 1.8.7 is key. Not only does it still ship with RHEL / CentOS 6 but is the version that Puppet pulls in as a dependency on RHEL / CentOS 5. |
Also, in an ideal world, you should not need libraries installed on the client but rather utilize module sync to get any ruby files needed copied to each client. |
@stschulte I've checked el5.11 & el6.6 and both support the I believe it should be fairly straight forward to replace nokogiri with REXML, which is part of ruby 1.8.7 core. I simply used what I was familiar for experimenting. That's a very valid point about the package data being immutable regardless of the provider -- that's an easy change. |
24ceb75
to
f61ea38
Compare
f61ea38
to
570b105
Compare
I've replaced nokogiri with REXML, added validation on the type, and unit tests for the new properties on the type/provider. |
@stschulte Does this PR need addition modifications before it can be merged? |
@jhoblitt sorry for not getting back to you. I still have to review your change. One thing I noticed while running rpm with Another thing that I noticed was the way you remove a key by giving it the package name as So as I said I will review your change and merge it then |
No description provided.