On Tue, Sep 15, 2015 at 12:31 PM Geoffrey Gardella <garde...@gmail.com>
wrote:

> The Solaris packaging provider fails to update packages to latest version
> when "latest" is specified. The method latest determines if there is a
> newer version of the package by doing "pkg list -Hn". There is no 'pkg
> refresh' executed, so a newer version in the repository will never be seen.
>
> The latest method is superfluous in Solaris. Puppet should simply run a
> 'pkg update', which will automatically do a refresh as part of its action.
>
> Since the flow is controlled by the type, not the provider, I'm wondering
> how I should best go about fixing this. The super-simple solution is to add
> a 'pkg refresh' at the beginning of the latest method. This will add time
> to the processing of each package, and put an undue load on the publisher
> in large environments. Ideally, I'ld just skip the latest method.
>
> Any suggestions?
>

This sounds super similar to the Debian Linux case, where `apt-get update`
needs to be run before the package manager will list new versions of
packages.

With Debian, it was decided (long before I joined the company) that Puppet
shouldn't do that operation on every run - both because it can be slow to
talk to another server, what to do if it fails is hard to judge, and also
because admins may want to control how and when their local package
database is synchronized with external servers.

The apt module provides an `apt::update` class that can be used to cause
package system to be synchronized as part of a catalog application, either
on a schedule or every time puppet runs. I think a similar module/class is
probably called for in the Solaris world.

-- Branan

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/b4173f95-02ee-46fe-a25f-8fc4c8b11717%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/b4173f95-02ee-46fe-a25f-8fc4c8b11717%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CADWDnrkzy18bSqpU49rMHY%2B4Zqh1ox9OsUcRaef9OF6F9eMppQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to