On Mon, Jan 05, 2015 at 11:07:12AM +0100, Martin Alfke wrote:
> Hi,
> On 05 Jan 2015, at 07:50, Royee Tager <
roye...@gmail.com> wrote:
>
> > Hello all,
> >
> > New CentOS 6.5 clients which run Puppet for the first time have many packages to install.
> > As you can see below the total runtime is 355.0697 sec.
> > The package part takes 262.6 sec.
> > Is it somehow possible to reduce that time?
>
> Did you measure the time for manual installation?
> I assume that the timing is similar.
> You can speed package installation by installing a local repo mirror and disable the fastest mirror option.
Explicitly selecting local mirrors will speed up the download.
https://docs.puppetlabs.com/references/latest/type.html#yumrepo
An idea I've toyed with, but haven't yet implemented (since we're so far fine with having initial agent runs take 5 minutes), is grepping package names for a particular set of profiles out of the classes in question and making a new rpm which depends on all those. Then have puppet install the new rpm first using some creative chaining. I suspect that yum might be quicker at dependency resolution than puppet is.
(I would still have all the other packages listed to provide a complete server spec in puppet.)
> To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/D298D66E-3E1D-4D98-B61F-660FB7126D11%40gmail.com.