Dzahn has uploaded a new change for review. https://gerrit.wikimedia.org/r/52578
Change subject: puppetize haproxy (for brewster), the very basics (RT-4660) ...................................................................... puppetize haproxy (for brewster), the very basics (RT-4660) Change-Id: I2dbf4e28f8797988aa79073afceb21831fa29639 --- A files/misc/haproxy.cfg A manifests/misc/haproxy.pp 2 files changed, 55 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/78/52578/1 diff --git a/files/misc/haproxy.cfg b/files/misc/haproxy.cfg new file mode 100644 index 0000000..f521e65 --- /dev/null +++ b/files/misc/haproxy.cfg @@ -0,0 +1,31 @@ +# ha proxy configuration for forwarding to puppet + +global + log 127.0.0.1 local0 + log 127.0.0.1 local1 notice + #log loghost local0 info + maxconn 4096 + #debug + #quiet + user haproxy + group haproxy + +defaults + log global + mode http + option httplog + option dontlognull + retries 3 + option redispatch + maxconn 2000 + contimeout 50000 + clitimeout 500000 + srvtimeout 500000 + +listen puppet + bind :8140 + mode tcp + balance roundrobin + #server sockpuppet 10.0.0.245 + server stafford 10.0.0.24 + acl esams src 91.198.174.0/24 diff --git a/manifests/misc/haproxy.pp b/manifests/misc/haproxy.pp new file mode 100644 index 0000000..8479968 --- /dev/null +++ b/manifests/misc/haproxy.pp @@ -0,0 +1,24 @@ +# haproxy (RT-4660) + +class misc::haproxy { + + system_role { 'misc::haproxy': description => 'haproxy host' } + + package { 'haproxy': ensure => present; } + + file { '/etc/haproxy/haproxy.cfg': + ensure => present, + mode => '0444', + owner => root, + group => root, + source => "puppet:///files/misc/haproxy.cfg"; + + } + + service { haproxy: + ensure => running; + } + + Package['haproxy'] -> File['/etc/haproxy/haproxy.cfg'] -> Service['haproxy'] + +} -- To view, visit https://gerrit.wikimedia.org/r/52578 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2dbf4e28f8797988aa79073afceb21831fa29639 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn <dz...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits