Package management

27 views
Skip to first unread message

Michael Bauer

unread,
Dec 18, 2013, 11:03:43 PM12/18/13
to puppet...@googlegroups.com

Hi,

I want to manage about 200 packages with Puppet and I want a separate "package"-resource for each package. The problem is: Every time, the Puppet-Agent does a "run" / "apply", he checks every 200 packages. Each package-check needs about 2 seconds. Altogether it takes about 400 seconds, which is to much. I want the check to only few seconds. I heard that it would be possible if I use yaml with using a single command which contains all the desired packages. But I don't know how to do it.

Hopefully someone can help.

Thanks

Jason Antman

unread,
Dec 19, 2013, 7:24:37 AM12/19/13
to puppet...@googlegroups.com
Michael,


Yes, package resources (like all resources) need to be checked before
puppet can do anything with them. I'm not quite sure what you mean by
"use yaml with a single command" - puppet Package resources must be
specified with one single package name, there's no way around this that
I'm aware of. I think you may be misunderstanding something.

What distribution/OS are you on? What provider is being used for these
packages? Can you provide the output of a --verbose or --debug run?

The real issue here, AFAIK, is that whatever package provider you're
using doesn't seem to be prefetching the resources, which leads to this
amazingly long query time. Also, taking a full 2 seconds for a package
check sounds really wrong - once again, something that seems to point to
prefetch not working (of course there are some cases where it's
impossible, but those are generally edge cases AFAIK).

-jantman
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/108cb765-add9-4f0b-ad2e-fa521836ec8b%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages