On Sep 15, 5:53 pm, Nikolay Sturm <goo...@erisiandiscord.de> wrote:
> * Oliver [2010-09-14]:
>
> > What mechanism is there (or is needed) in order to make
> > cucumber-puppet aware of the environment (or at least modulepath)
> > settings?
>
> The environment is just another node fact. As long as you don't use yaml
> node files, you can set it in hooks.rb or in a Given step:
>
> @facts['environment'] = "test1"
>
> If you use yaml node files, you have to use different files for
> different environments. It is currently not possible to override the
> facts from node files.

OK, I was aware of being able to set the environment in this way, but
didn't realise that this would tie in with client-defined properties
of that environment (e.g. the modulepath) but from what I've read from
other posts in this thread, that seems to be possible (and the source
of some confusion for the related bugs). So basically, it is a matter
of using this variable plus defining the desired environments in some
puppet.conf that cucumber-puppet pulls in.

Thanks!

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