17 lines
512 B
Groff
17 lines
512 B
Groff
$0 = "master"
|
|
|
|
# if you want debugging:
|
|
# ARGV << "--debug"
|
|
|
|
ARGV << "--rack"
|
|
|
|
# Rack applications typically don't start as root. Set --confdir and --vardir
|
|
# to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing
|
|
# to ~puppet/.puppet
|
|
ARGV << "--confdir" << "/etc/puppet"
|
|
ARGV << "--vardir" << "/var/lib/puppet"
|
|
|
|
require 'puppet/application/master'
|
|
# we're usually running inside a Rack::Builder.new {} block,
|
|
# therefore we need to call run *here*.
|
|
run Puppet::Application[:master].run
|