On 19/09/12 06:11, Gonzalo Servat wrote:
Hi All,
In our environment, we use the $::environment variable extensively to
determine if the host should have one set of mounts (e.g. production)
or a different set of mounts (e.g. qa). This is just one example, but
there are many others where the $::environment variable comes into play.
The problem is that I have a number of puppet changes that I want to
test before merging into the production tree, so I've created a
staging environment.... however, given the importance of the
$::environment variable throughout the manifests, this won't work
I think the only way to get around this problem is to copy
$::environment to $::my_environment or some such, and then change all
the references to use $::my_environment. Then you could have a selective
case in 'staging' where it forcefully sets $my_environment to either
'prod' or 'qa' in your case.
Any suggestions? I'd like to point a number of production nodes at a
secondary puppet server using --noop to see what would change, but
then I run into SSL issues. Would be great if I could use puppet over
cleartext http for this test, but I'm not sure if that's possible.
If you set up a second Puppet Master and synchronise the CA and all the
signed certificates from your primary to your "slave" Master, it should
work. I would forcefully turn certificate signing off on your "slave" in
puppet.conf. Dan Bode wrote a great article ages ago about multi-master
Puppet which you might want to reference: http://bodepd.com/wordpress/?p=7
Thanks in advance for any feedback.
Gonzalo
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To post to this group, send email to puppet-users@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.
--
Luke Bigum
Senior Systems Engineer
Information Systems
Ph: +44 (0) 20 3192 2520
luke.bi...@lmax.com | http://www.lmax.com
LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN
FX and CFDs are leveraged products that can result in losses exceeding
your deposit. They are not suitable for everyone so please ensure you
fully understand the risks involved. The information in this email is not
directed at residents of the United States of America or any other
jurisdiction where trading in CFDs and/or FX is restricted or prohibited
by local laws or regulations.
The information in this email and any attachment is confidential and is
intended only for the named recipient(s). The email may not be disclosed
or used by any person other than the addressee, nor may it be copied in
any way. If you are not the intended recipient please notify the sender
immediately and delete any copies of this message. Any unauthorised
copying, disclosure or distribution of the material in this e-mail is
strictly forbidden.
LMAX operates a multilateral trading facility. Authorised and regulated
by the Financial Services Authority (firm registration number 509778) and
is registered in England and Wales (number 06505809).
Our registered address is Yellow Building, 1A Nicholas Road, London, W11
4AN.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@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.