aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xymon/manifests/client.pp
blob: a4cf6c21e583a0f1cb33bff3e72692ba9ca3479e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class xymon::client {
    package { 'xymon-client': }

    service { 'xymon-client':
        hasstatus => false,
        status    => '/usr/lib64/xymon/client/runclient.sh status',
        require   => Package['xymon-client'],
    }

    # TODO replace with a exported ressource
    $server = extlookup('hobbit_server','x')
    file { '/etc/sysconfig/xymon-client':
        content => template('xymon/xymon-client'),
        notify  => Service['xymon-client'],
        require => Package['xymon-client'],
    }
}