Very large Hiera File

54 views
Skip to first unread message

Terrence Martin

unread,
Sep 3, 2014, 3:23:11 PM9/3/14
to puppet...@googlegroups.com
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 caused by the size of the Heira file. Presumably 
this is 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 I would prefer to maintain consistency

Any suggestions on how best to approach this in puppet is of course appreciated. :) 

Terrence



Trevor Vaughan

unread,
Sep 3, 2014, 4:07:23 PM9/3/14
to puppet...@googlegroups.com
Honestly, if you have a large number of accounts, I would go with LDAP. Redundancy isn't an issue and it does everything that you want it to.

Trevor


--
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/8b432b54-ab14-4142-801b-65a6183790d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvau...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

Neil - Puppet List

unread,
Sep 4, 2014, 5:46:18 AM9/4/14
to PuppetList

Hello

I hit a similar issue but took a hackish way out. I now have a script convert my yaml to a file full of virtual resources.
Its a bit yuck but compile time is much better.

Neil

Reply all
Reply to author
Forward
0 new messages