-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Matthew,

According to the source, defaultto is set to 'installed', of which
'present' is an alias.

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/package.rb

Which means no package updates should have occurred. As for why they
did and why nothing was logged .. that I don't know.

Regards,
Bill Fraser
System Administrator
Pythian

On 12-07-26 10:37 AM, Matthew Barr wrote:
> We just saw an interesting scenario: Puppet 2.7.18 updated packages
> on a RHEL 6.2 box to a newer version without logging that fact.
> 
> We've already fixed our code so it doesn't happen again, but I'm
> wondering if this is expected behavior or a bug.
> 
> * I presume the default  "ensure" behavior on package is "latest"?
> The type reference doesn't say that…
> 
> * For now, we've switched to using ensure => present… but I'd have
> liked the logs to reflect that update.
> 
> 
> 
> Details, if necessary:
> 
> Now, we had the code as such:
> 
> 
> package { php:; php-common:; php-xml:; php-domxml;: } and there was
> a single not present package to install  (php-domxml).
> 
> 
> Interestingly, the package was actually an older package name
> that's now handled by a new package (php-xml), which meant that the
> actual message logged was a failure.
> 
> 
> Jul 25 14:09:43 web01 puppet-agent[1021]:
> (/Stage[main]/Php/Package[php-domxml]/ensure) change from absent to
> present failed: Could not find package php-domxml
> 
> This was the only package message logged, and yet we ended up with
> newer versions.
> 
> 
> 
> Matthew Barr Technical Architect E: [email protected] AIM:
> matthewbarr1 c:  (646) 727-0535
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlARkCUACgkQ5xgg9J6hpUt/qACg2oEH5x7qEb2X9YxFbYZh9i+G
Q6EAnRiwQY4bpqKc+SLA6XgUm7z/LJ/S
=8Sxe
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to