Created
October 14, 2009 15:22
-
-
Save masterzen/210156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a config.ru for use with glassfish | |
# SSL needs to be handled outside this, either | |
# in glassfish _or_ in an HTTP reverse proxy like | |
# nginx. | |
require 'rubygems' | |
require 'rack' | |
# load glassfish rack support | |
require 'rack/handler/grizzly' | |
require 'jruby/rack' | |
# if puppet is not in your RUBYLIB: | |
# $:.push('/opt/puppet/lib') | |
$0 = "puppetmasterd" | |
require 'puppet' | |
# if you want debugging: | |
#ARGV << "--debug" | |
ARGV << "--trace" | |
ARGV << "--no-daemonize" | |
# if your config is non-standard | |
#ARGV << "--confdir" | |
#ARGV << "/tmp/master" | |
#ARGV << "--vardir" | |
#ARGV << "/tmp/master" | |
ARGV << "--rack" | |
require 'puppet/application/puppetmasterd' | |
Puppet::Application[:puppetmasterd].run | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment