summaryrefslogtreecommitdiff
path: root/puppet/modules/site_haproxy
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-03-19 16:07:00 -0400
committerMicah Anderson <micah@riseup.net>2013-03-19 16:10:00 -0400
commit7c7ca311ff00c5cddaee892c173354a69f4e59e4 (patch)
tree4a358806c1169c7baddc2b3308e5f570286c75a5 /puppet/modules/site_haproxy
parent5e29e380df9b1ace765ea31254c3fb6e9e0e0cb4 (diff)
add some generic haproxy defaults
Diffstat (limited to 'puppet/modules/site_haproxy')
-rw-r--r--puppet/modules/site_haproxy/manifests/init.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/puppet/modules/site_haproxy/manifests/init.pp b/puppet/modules/site_haproxy/manifests/init.pp
new file mode 100644
index 00000000..7cb10ab2
--- /dev/null
+++ b/puppet/modules/site_haproxy/manifests/init.pp
@@ -0,0 +1,25 @@
+class site_haproxy {
+
+ class { 'haproxy':
+ enable => true,
+ manage_service => true,
+ global_options => {
+ 'log' => '127.0.0.1 local0',
+ 'maxconn' => '4096',
+ 'stats' => 'socket /var/run/haproxy.sock user haproxy group haproxy',
+ 'chroot' => '/usr/share/haproxy',
+ 'user' => 'haproxy',
+ 'group' => 'haproxy',
+ 'daemon' => ''
+ },
+ defaults_options => {
+ 'log' => 'global',
+ 'retries' => '3',
+ 'option' => 'redispatch',
+ 'contimeout' => '5000',
+ 'clitimeout' => '50000',
+ 'srvtimeout' => '50000'
+ }
+ }
+
+}