Skip to content

Instantly share code, notes, and snippets.

@masterzen
Created March 15, 2010 16:18
Show Gist options
  • Select an option

  • Save masterzen/332996 to your computer and use it in GitHub Desktop.

Select an option

Save masterzen/332996 to your computer and use it in GitHub Desktop.
$:.unshift('/home/brice/devl/puppet/lib')
$0 = "puppetmasterd"
require 'puppet'
ARGV << "--verbose"
ARGV << "--trace"
ARGV << "--confdir"
ARGV << "/tmp/master"
ARGV << "--vardir"
ARGV << "/tmp/master"
ARGV << "--no-daemonize"
ARGV << "--user"
ARGV << "brice"
ARGV << "--rack"
require 'puppet/application/puppetmasterd'
# we're usually running inside a Rack::Builder.new {} block,
# therefore we need to call run *here*.
run Puppet::Application[:puppetmasterd].run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment