On 2010-06-15 16:20, Nigel Kersten wrote:

On Tue, Jun 15, 2010 at 1:00 AM, Thomas Bellman<bell...@nsc.liu.se>  wrote:

I think it is sufficient to set modulepath under [puppetmasterd] in
the puppet.conf file.  I do:

    [puppetmasterd]
        modulepath = /config/e/production/modules
        ...

I dislike setting a default modulepath, as it means that's the one
clients get if they incorrectly specify their environment.

I mitigate that by also doing

    manifestdir = /dev/null
    manifest = /dev/null/site.pp

Then I get "err: Could not retrieve catalog from remote server: Error
400 on SERVER: Could not parse for environment xyzzy: Could not find
file /dev/null/site.pp" if I happen to specify a non-existing environment.
Not very elegant, but seems to do the trick.


        /Bellman

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to