----- Nan Liu <[email protected]> wrote:
> You can use a completely separate bootstrap environment if it's
> significantly different.
> # onetime
> puppet agent --environment bootstrap
> # later on
> puppet agent --environment production
> 
> Or you can use a custom fact. Easiest way is either environment
> variable or facts.d (see stdlibs).
> 
> FACTER_bootstrap=true puppet agent -t
> 
> node example {
>   if $::bootstrap {
>     include onetime_class
>   } else {
>     include normal_class
>   }
> }
> 
> Thanks,
> 
> Nan
> 

Excellent suggestion.  Better than tags or not running puppet and less resource 
intensive than running multiple puppet masters

“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

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

Reply via email to