Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created October 14, 2009 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterzen/210156 to your computer and use it in GitHub Desktop.
Save masterzen/210156 to your computer and use it in GitHub Desktop.
# 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