Sha256: ddb4467348447df8da206a60d89362f3e1b3182f21edfe99aca5877f5b6ff451

Contents?: true

Size: 1.61 KB

Versions: 120

Compression:

Stored size: 1.61 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"

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

# 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

120 entries across 120 versions & 1 rubygems

Version Path
puppet-5.5.2 ext/rack/config.ru
puppet-5.5.2-x86-mingw32 ext/rack/config.ru
puppet-5.5.2-x64-mingw32 ext/rack/config.ru
puppet-5.5.2-universal-darwin ext/rack/config.ru
puppet-5.3.7 ext/rack/config.ru
puppet-5.3.7-x86-mingw32 ext/rack/config.ru
puppet-5.3.7-x64-mingw32 ext/rack/config.ru
puppet-5.3.7-universal-darwin ext/rack/config.ru
puppet-5.5.1 ext/rack/config.ru
puppet-5.5.1-x86-mingw32 ext/rack/config.ru
puppet-5.5.1-x64-mingw32 ext/rack/config.ru
puppet-5.5.1-universal-darwin ext/rack/config.ru
puppet-5.3.6 ext/rack/config.ru
puppet-5.3.6-x86-mingw32 ext/rack/config.ru
puppet-5.3.6-x64-mingw32 ext/rack/config.ru
puppet-5.3.6-universal-darwin ext/rack/config.ru
puppet-5.5.0 ext/rack/config.ru
puppet-5.5.0-x86-mingw32 ext/rack/config.ru
puppet-5.5.0-x64-mingw32 ext/rack/config.ru
puppet-5.5.0-universal-darwin ext/rack/config.ru