Skip to content

Instantly share code, notes, and snippets.

@jantman
Created February 7, 2014 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jantman/8866995 to your computer and use it in GitHub Desktop.
Save jantman/8866995 to your computer and use it in GitHub Desktop.
puppet-managed nagios resources with purging
$config_dir = '/etc/nagios'
Nagios_host <<||>> {
target => "${config_dir}/nagios_host.cfg",
before => File["${config_dir}/nagios_host.cfg"],
}
file { "${config_dir}/nagios_host.cfg":
ensure => file,
owner => $nagios_user,
group => $nagios_group,
mode => '0644',
backup => false,
replace => false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment