summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-17 16:50:26 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-17 16:50:26 -0200
commitc4e6d980566e4902b25ca40f0d56772f491cd686 (patch)
treec2b02e6f0287cf6f53399af8f9b2ed7d7496736e /templates
parent2448fbb72c6caed419ea7ef0aab5505af2551f93 (diff)
downloadpuppet-puppet-c4e6d980566e4902b25ca40f0d56772f491cd686.tar.gz
puppet-puppet-c4e6d980566e4902b25ca40f0d56772f491cd686.tar.bz2
Adding support for mongrel
Diffstat (limited to 'templates')
-rw-r--r--templates/puppetmaster.erb37
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/puppetmaster.erb b/templates/puppetmaster.erb
new file mode 100644
index 0000000..0aa5f3b
--- /dev/null
+++ b/templates/puppetmaster.erb
@@ -0,0 +1,37 @@
+# Defaults for puppetmaster - sourced by /etc/init.d/puppetmaster
+
+# Start puppet on boot?
+START=yes
+
+# Startup options
+#DAEMON_OPTS=""
+DAEMON_OPTS="<%= puppetmaster_daemon_opts %>"
+
+# What server type to run
+# Options:
+# webrick (default, cannot handle more than ~30 nodes)
+# mongrel (scales better than webrick because you can run
+# multiple processes if you are getting
+# connection-reset or End-of-file errors, switch to
+# mongrel. Requires front-end web-proxy such as
+# apache, nginx, or pound)
+# See: http://reductivelabs.com/trac/puppet/wiki/UsingMongrel
+SERVERTYPE=<%= puppetmaster_servertype %>
+
+# How many puppetmaster instances to start? Its pointless to set this
+# higher than 1 if you are not using mongrel.
+PUPPETMASTERS=<%= puppetmaster_puppetmasters %>
+
+# What port should the puppetmaster listen on (default: 8140). If
+# PUPPETMASTERS is set to a number greater than 1, then the port for
+# the first puppetmaster will be set to the port listed below, and
+# further instances will be incremented by one
+#
+# NOTE: if you are using mongrel, then you will need to have a
+# front-end web-proxy (such as apache, nginx, pound) that takes
+# incoming requests on the port your clients are connecting to
+# (default is: 8140), and then passes them off to the mongrel
+# processes. In this case it is recommended to run your web-proxy on
+# port 8140 and change the below number to something else, such as
+# 18140.
+PORT=<%= puppetmaster_port %>