Add haproxy module from tor
[mirror/dsa-puppet.git] / modules / haproxy / manifests / init.pp
1 class haproxy {
2         package { 'haproxy':
3                 ensure => installed,
4         }
5         service { 'haproxy':
6                 ensure => running,
7                 require => Package['haproxy'],
8         }
9
10         file { '/usr/local/bin/munin-haproxyng':
11                 mode => '0555',
12                 source => "puppet:///modules/haproxy/monitoring-munin-haproxy/haproxyng",
13         }
14         package { 'libswitch-perl':
15                 ensure => installed,
16         }
17         file { '/etc/munin/plugin-conf.d/puppet-haproxyng':
18                 source => "puppet:///modules/haproxy/munin-haproxyng.conf",
19         }
20         munin::check { "haproxyng":
21                 script => "../../../local/bin/munin-haproxyng",
22         }
23 }