Hiera file size and timeouts

Hi,

I have a large Hiera file that I want to use for a module that creates
accounts on my systems. The module is

https://forge.puppetlabs.com/torrancew/account

In any case the issue is I get an error

Error: Could not retrieve catalog from remote server: execution expired
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not run Puppet configuration client: execution expired

It seems there is a timeout that causes a failure of puppet. This is certainly
because of the large time due to compile due to all of the accounts I have placed in my
hiera.yaml file.

My question is whether or not it is possible to configure puppet to
extend the time for compilation to take these large hiera files into
account, or if there are any suggestions on how to improve things to
increase the time to compile the yaml file?

At the end of the day I do not really need the accounts as much as I
just need the usernames on these systems due to the storage system we
use. I do not want to have a central user management system as that
creates a single point of failure. So that means I could in fact just
have puppet manage a static file that adds to the /etc/passwd file. However this would be inconsistent with my systems that have a more reasonable amount of users. :slight_smile:

Terrence

https://docs.puppetlabs.com/references/stable/configuration.html#configtimeout
will control how long the client waits for the catalog to compile.
Useful when the master is particularly slow, or you have a lot of
manifests.

··· On 03/09/14 20:12, Terrence Martin wrote: > In any case the issue is I get an error > > Error: Could not retrieve catalog from remote server: execution expired > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > Error: Could not run Puppet configuration client: execution expired > > It seems there is a timeout that causes a failure of puppet. This is certainly > because of the large time due to compile due to all of the accounts I have placed in my > hiera.yaml file. > > My question is whether or not it is possible to configure puppet to > extend the time for compilation to take these large hiera files into > account, or if there are any suggestions on how to improve things to > increase the time to compile the yaml file?


Dominic Cleal
Red Hat Engineering