We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A resource declation like
apt::mark { 'foo': setting => unhold }
is not idempotent and will execute on every Puppet run.
I would expect this resource to be idempotent, so that it can be used to ensure that a certain package is not held.
Add an apt::mark resource as above for an installed package that is not held, and observe Puppet executing it on every run.
apt::mark
main
It seems that the unless_cmd for unhold is just not configured:
unless_cmd
unhold
puppetlabs-apt/manifests/mark.pp
Line 16 in 22ed8ab
! (/usr/bin/apt-mark showhold ${title} | grep ${title} -q)
/usr/bin/apt-mark showhold ${title} | grep ${title} -q
onlyif
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
A resource declation like
is not idempotent and will execute on every Puppet run.
Expected Behavior
I would expect this resource to be idempotent, so that it can be used to ensure that a certain package is not held.
Steps to Reproduce
Add an
apt::mark
resource as above for an installed package that is not held, and observe Puppet executing it on every run.Environment
main
)Additional Context
It seems that the
unless_cmd
forunhold
is just not configured:puppetlabs-apt/manifests/mark.pp
Line 16 in 22ed8ab
Something like
! (/usr/bin/apt-mark showhold ${title} | grep ${title} -q)
, or adding/usr/bin/apt-mark showhold ${title} | grep ${title} -q
toonlyif
, should probably work.The text was updated successfully, but these errors were encountered: