-
Notifications
You must be signed in to change notification settings - Fork 2.2k
(PUP-1537) add hold attribute #7773
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
(PUP-1537) add hold attribute #7773
Conversation
b4249b2 to
bbebede
Compare
|
CLA signed by all contributors. |
bbebede to
005ff9a
Compare
|
jenkins please test this on debian8-64a,debian8-32a,debian9-64a,debian9-32a,solaris10-64a,solaris114-64a,ubuntu1404-64a,ubuntu1404-32a,ubuntu1604-64a,ubuntu1604-32a,ubuntu1804-64a |
|
jenkins please test this on |
005ff9a to
119f5ae
Compare
|
It looks like originally the remove step is not really handled, I will add fix this this before merging |
32a636e to
bc3f287
Compare
|
jenkins please test this on |
joshcooper
left a comment
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.
We shouldn't modify the resource harness for this one use case. Need to solve the boolean parameter and property bugs in a way that doesn't break providers.
311a20f to
6a12662
Compare
|
jenkins please test this on |
8eca10b to
ecfcb8f
Compare
This commit adds `hold` property for package providers on Debian(dpkg/apt/fink/aptitude) and Solaris(pgk) as alternative of using "held" value for `ensure`. Using "held" value for `ensure` works as before, but it shows deprecation warning and will be removed in further release. Allowed values for `hold` are "yes"/"true"/"no"/"false", default to "false". Hold can be specified with or without `ensure`, if `ensure` is missing will default to "present". Hold cannot be specified together with "purged", "absent" or "held" values for `ensure`.
ecfcb8f to
073a6dd
Compare
|
@joshcooper, does it makes sense to extend/rename above |
|
|
||
| def should_to_s(value) | ||
| (value == :true).to_s | ||
| end |
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.
Does is_to_s need to be overridden?
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.
without it will print something like:
Changing hold from "false" to true
I'm not familiar enough with what those mean to say if they should be a single parameter or different. Suggest asking in #puppet-dev slack. |
|
Will prepare a second PR replacing |
|
work to be continued on: #7815 |
This commit adds
holdproperty for package providers onDebian(dpkg/apt/fink/aptitude) and Solaris(pgk) as
alternative of using "held" value for
ensure.Using "held" value for
ensureworks as before, but it showsdeprecation warning and will be removed in further release.
Allowed values for
holdare "yes"/"true"/"no"/"false",default to "false". Hold can be specified with or without
ensure,if
ensureis missing will default to "present".Hold cannot be specified together with "purged", "absent" or "held"
values for
ensure.