summaryrefslogtreecommitdiff
path: root/manifests/target.pp
blob: 675ac1a7074d98e40ab4584bfb0f1ebf3c4d0524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# manifests/target.pp

class nagios::target {

    @@nagios_host { "${fqdn}":
        address => $ipaddress,
        alias => $hostname,
        use => 'generic-host',
    }

    if ($nagios_parents != '') {
        Nagios_host["${fqdn}"] { parents => $nagios_parents }
    }

}