Sha256: 4629d71fad15e14a72d431fe99e02b89ce9c8eb006b450388774c0775288060c

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

# Install haproxy

def post_install_string
  %w(
    "echo 'Configuring haproxy logging'"
    "sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/haproxy"
    "sed -i 's/SYSLOGD=\"\"/SYSLOGD=\"-r\"/g' /etc/default/syslogd"
    "echo 'local0.* /var/log/haproxy.log' >> /etc/syslog.conf && /etc/init.d/sysklogd restart"
    "/etc/init.d/haproxy restart"
  )
end

package :haproxy, :provides => :proxy do
  description 'Haproxy proxy'
  # version '1.2.18'
  # source "http://haproxy.1wt.eu/download/1.2/src/haproxy-#{version}.tar.gz"
  apt %w( haproxy )
  
  post :install, post_install_string
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
auser-poolparty-0.0.8 lib/poolparty/provider/packages/haproxy.rb
dreadpiratepj-poolparty-0.0.8 lib/poolparty/provider/packages/haproxy.rb