Re: hash $environment to handle a lot of number of environments

17 views
Skip to first unread message

Jérôme Loyet

unread,
Aug 5, 2012, 3:49:39 PM8/5/12
to puppet...@googlegroups.com
I ended up with a pull request for this: https://github.com/puppetlabs/puppet/pull/1005

Le dimanche 5 août 2012 11:42:48 UTC+2, Jérôme Loyet a écrit :
Hi guys,

I'm about to set up a puppet instance for handling a large number of environment. I've set up the following puppet master configuration:

[master]
manifestdir = $confdir/environments/$environment/manifests
templatedir = $confdir/environments/$environment/templates
modulepath = $confdir/modules:$confdir/environments/$environment/modules

The problem is that in the $confdir directory, I'll end up with a large number of sub directories and I'd like to hash them with something like:
$confdir/environments/f/fo/foo
$confdir/environments/b/ba/bar

Do you have any ideas on how to achieve this ?

Thanks
++ Jerome

PS: I'll need a lot of environements because I'll have to handle a lots of servers managed by many differents users. And I want to give users to clone environements for testing and validation purpose.
Reply all
Reply to author
Forward
0 new messages