summaryrefslogtreecommitdiff
path: root/files/master
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2010-01-24 12:18:12 +0100
committervarac <varacanero@zeromail.org>2010-01-24 12:18:12 +0100
commit8f8a6d24375057029d8fefb2a2a78a22e07e964d (patch)
tree4c2973edf357cd86b70915d35311fc42c2ec37c3 /files/master
parent373617edd3b17ac5605d525e5e96ec5494e573c7 (diff)
Added puppet::puppetmaster::passenger class to enable apache/passenger support
Diffstat (limited to 'files/master')
-rw-r--r--files/master/config.ru27
1 files changed, 27 insertions, 0 deletions
diff --git a/files/master/config.ru b/files/master/config.ru
new file mode 100644
index 0000000..b9d8fbc
--- /dev/null
+++ b/files/master/config.ru
@@ -0,0 +1,27 @@
+# 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:
+# $:.unshift('/opt/puppet/lib')
+
+$0 = "puppetmasterd"
+require 'puppet'
+
+# logs to file instead of syslog
+#Puppet::Util::Log.newdestination("/var/log/puppet/puppetmasterd.log")
+
+# if you want debugging:
+#ARGV << "--debug"
+
+ARGV << "--rack"
+
+# in some setups puppetmasterd doesn't seem to read the puppet.conf
+# config at startup, then you need to pass these options:
+ARGV << "--vardir" << "/var/lib/puppet"
+ARGV << "--ssldir" << "/var/lib/puppet/ssl"
+
+
+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