Issue #2833 has been updated by Zachary Stern.
Especially strange is that the issue doesn't show up using the RAL from the
command line.
E.g.:
[root@master3 ~]# puppet resource package bluez ensure=present
Notice: /Package[bluez]/ensure: created
package { 'bluez':
ensure => '4.66-1.el6',
}
[root@master3 ~]# puppet resource package bluez ensure=purged
Notice: /Package[bluez]/ensure: ensure changed '4.66-1.el6' to 'purged'
package { 'bluez':
ensure => 'absent',
}
[root@master3 ~]# puppet resource package bluez ensure=purged
Notice: /Package[bluez]/ensure: created
package { 'bluez':
ensure => 'absent',
}
Puppet detects no change when you run the third command. And yet during a run,
it's marked as changed.
----------------------------------------
Bug #2833: yum provider keeps re-purging package
https://projects.puppetlabs.com/issues/2833#change-97182
* Author: Adrian Bridgett
* Status: Duplicate
* Priority: Normal
* Assignee: Jesse Wolfe
* Category: package
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
With a manifest containing:
<pre>
package { "nano": ensure => purged; }
</pre>
Each time I run puppet I'm seeing this:
<pre>
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q nano
--nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION}
%{RELEASE} %{ARCH}
'
debug: //Node[redhat]/default_class/packages::purge::basic/Package[nano]:
Changing ensure
debug: //Node[redhat]/default_class/packages::purge::basic/Package[nano]: 1
change(s)
debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -y erase
nano'
notice:
//Node[redhat]/default_class/packages::purge::basic/Package[nano]/ensure:
created
</pre>
Even though the package isn't installed. I can't see anything in subsequent
releases that suggest this may have changed. On Debian this seems to work just
fine (no notices). This also means that related notifies keep being called
even though the system state isn't changing.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.