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

    $service = 'xymon'

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

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