X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhaproxy%2Fmanifests%2Finit.pp;fp=modules%2Fhaproxy%2Fmanifests%2Finit.pp;h=b9bdf10bb0d6faf53ab4ef66b44ef30ec9c96027;hb=76ca91bce24ecbcbcc4e62a37aa06fd0fb9f96c7;hp=0000000000000000000000000000000000000000;hpb=46cee04ab06b23ab6e9e4baba655cf470d10cfc4;p=mirror%2Fdsa-puppet.git diff --git a/modules/haproxy/manifests/init.pp b/modules/haproxy/manifests/init.pp new file mode 100644 index 000000000..b9bdf10bb --- /dev/null +++ b/modules/haproxy/manifests/init.pp @@ -0,0 +1,23 @@ +class haproxy { + package { 'haproxy': + ensure => installed, + } + service { 'haproxy': + ensure => running, + require => Package['haproxy'], + } + + file { '/usr/local/bin/munin-haproxyng': + mode => '0555', + source => "puppet:///modules/haproxy/monitoring-munin-haproxy/haproxyng", + } + package { 'libswitch-perl': + ensure => installed, + } + file { '/etc/munin/plugin-conf.d/puppet-haproxyng': + source => "puppet:///modules/haproxy/munin-haproxyng.conf", + } + munin::check { "haproxyng": + script => "../../../local/bin/munin-haproxyng", + } +}