On Tue, 15 Jun 2010, Nigel Kersten wrote:
> >> 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
> 
> Are you using an external node classifier? I thought that when I
> deployed a classifier it stopped that trick from working... but I
> could be wrong.

I use an external node classifier, in conjunction with settings
like this:

   [puppetmasterd]
   environments = UNCONFIGURED,list,of,good,environments
   environment = UNCONFIGURED
   manifestdir = /etc/puppet/UNCONFIGURED
   # modulepath and manifest not set at this level

   [UNCONFIGURED]
   manifest = /etc/puppet/UNCONFIGURED/site.pp
   modulepath = /etc/puppet/UNCONFIGURED/empty-directory

UNCONFIGURED/site.pp contains little more than a "fail" statement.

My external node classifier forces environment = UNCONFIGURED
for any client that it doesn't know about.

I found that setting manifestdir to something that did not exist
caused puppet to create it.  I didn't try /dev/null, but I'd be
afraid of puppet converting it from a device to a directory.

--apb (Alan Barrett)

-- 
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