Skip to content

Instantly share code, notes, and snippets.

@abraverm
Created March 29, 2015 11:13
Show Gist options
  • Select an option

  • Save abraverm/cb5307cc80e9d2dc492a to your computer and use it in GitHub Desktop.

Select an option

Save abraverm/cb5307cc80e9d2dc492a to your computer and use it in GitHub Desktop.
init.pp
#
# Installs NRPE and asks puppet managed Nagios to create required
# configurations using exported resources feature.
# The exported resourcs relays on PuppetDB, make sure Puppet Master using it.
#
# === Parameters
#
# [*nagios_servers*]
# FQDN of Nagios server.
# The parameter used as a list of allows servers in nrpe.cfg
# Also it will be used as tag in nagios_host resource. Nagios puppet module
# will import all resources with that tag.
#
# === Authors
#
# Alexander Braverman <abraverm@redhat.com>
#
class nrpe (
$nagios_servers = 'nagios.example.com'
) {
include nrpe::param
include nrpe::install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment