Sha256: 9db075c3539b3a9fc9118a0d46d21812e95a7d3b1c6770d861ee2b74632d2036

Contents?: true

Size: 1.6 KB

Versions: 157

Compression:

Stored size: 1.6 KB

Contents

# 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:
# $LOAD_PATH.unshift('/opt/puppet/lib')

$0 = "master"

# if you want debugging:
# ARGV << "--debug"

ARGV << "--rack"

# Rack applications typically don't start as root.  Set --confdir, --vardir,
# --logdir, --rundir to prevent reading configuration from
# ~/ based pathing.
ARGV << "--confdir" << "/etc/puppetlabs/puppet"
ARGV << "--vardir"  << "/opt/puppetlabs/server/data/puppetmaster"
ARGV << "--logdir"  << "/var/log/puppetlabs/puppetmaster"
ARGV << "--rundir"  << "/var/run/puppetlabs/puppetmaster"
ARGV << "--codedir"  << "/etc/puppetlabs/code"

# always_cache_features is a performance improvement and safe for a master to
# apply. This is intended to allow agents to recognize new features that may be
# delivered during catalog compilation.
ARGV << "--always_cache_features"

# NOTE: it's unfortunate that we have to use the "CommandLine" class
#  here to launch the app, but it contains some initialization logic
#  (such as triggering the parsing of the config file) that is very
#  important.  We should do something less nasty here when we've
#  gotten our API and settings initialization logic cleaned up.
#
# Also note that the "$0 = master" line up near the top here is
#  the magic that allows the CommandLine class to know that it's
#  supposed to be running master.
#
# --cprice 2012-05-22

require 'puppet/util/command_line'
# we're usually running inside a Rack::Builder.new {} block,
# therefore we need to call run *here*.
run Puppet::Util::CommandLine.new.execute

Version data entries

157 entries across 157 versions & 2 rubygems

Version Path
puppet-4.10.12 ext/rack/config.ru
puppet-4.10.12-x86-mingw32 ext/rack/config.ru
puppet-4.10.12-x64-mingw32 ext/rack/config.ru
puppet-4.10.12-universal-darwin ext/rack/config.ru
puppet-4.10.11 ext/rack/config.ru
puppet-4.10.11-x86-mingw32 ext/rack/config.ru
puppet-4.10.11-x64-mingw32 ext/rack/config.ru
puppet-4.10.11-universal-darwin ext/rack/config.ru
puppet-4.10.10 ext/rack/config.ru
puppet-4.10.10-x86-mingw32 ext/rack/config.ru
puppet-4.10.10-x64-mingw32 ext/rack/config.ru
puppet-4.10.10-universal-darwin ext/rack/config.ru
puppet-4.10.9 ext/rack/config.ru
puppet-4.10.9-x86-mingw32 ext/rack/config.ru
puppet-4.10.9-x64-mingw32 ext/rack/config.ru
puppet-4.10.9-universal-darwin ext/rack/config.ru
puppet-retrospec-1.5.0 vendor/gems/puppet-4.5.2/ext/rack/config.ru
puppet-4.10.8 ext/rack/config.ru
puppet-4.10.8-x86-mingw32 ext/rack/config.ru
puppet-4.10.8-x64-mingw32 ext/rack/config.ru