Douglas Garstang wrote:
> But... how do you serve up those multiple puppet environments? Are you
> running multiple versions of the puppetmaster? I'm using passenger so
> it would seem like it would be fairly easy to run additional
> puppetmasters on different ports, except that I can't find where in
> the passenger config I can change the default /etc/puppet (it's not in
> the conf.d/puppetmaster.conf file).
>
>
You can do that with multiple config.ru. But IMHO it would be better to
stick with multiple environments for most cases.
The development config.ru would look like (BIG NOTE: > 0.25):
# a config.ru, for use with every rack-compatible webserver.
# SSL needs to be handled outside this, though.
# if puppet is not in your RUBYLIB:
# $:.unshift('/opt/puppet/lib')
$0 = "puppetmasterd"
require 'puppet'
#HERE - ADD THIS LINE
ARGV << "--confdir=/etc/puppet-devel"
ARGV << "--rack"
require 'puppet/application/puppetmasterd'
# we're usually running inside a Rack::Builder.new {} block,
# therefore we need to call run *here*.
run Puppet::Application[:puppetmasterd].run
--
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.