Re: package versions and external checks

David Schmitt
Mon, 13 Aug 2007 10:54:30 -0000

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

On Monday 13 August 2007, Tim Stoop wrote:
> In short, is there a way to make Package{} query some external data
> source to check which version of which package needs to be installed
> on this machine? Or have people other ways to do this?

You could write a puppet function, which does the lookup and use it like this:

package { $p: ensure => target_version($p) }

Perhaps you can access some puppet internals even, to see where you are
called, to avoid the parameter?

> Essentially, I''m a bit tired of ssh''ing to about 50
machines each
> morning to install the latest version of file or tcpdump. But I
don''t
> want everything done automagically, because there are some things that
> I don''t want upgraded every time. Tips welcome.

Alternatively you could use one of the "distributed ssh" alternatives,
like

	clusterssh - administer multiple ssh or rsh shells simultaneously
or	dsh - dancer''s shell, or distributed shell


Regards, DavidS
- --
The primary freedom of open source is not the freedom from cost, but the free-
dom to shape software to do what you want. This freedom is /never/ exercised
without cost, but is available /at all/ only by accepting the very different
costs associated with open source, costs not in money, but in time and effort.
- -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGwDhq/Pp1N6Uzh0URAtb8AJ0b8nl/QLbv4Lk4qZHzuRJuh1emUgCfVkx5
Dlud7BmjLD49wF/st919V1k=1qvW
-----END PGP SIGNATURE-----