Skip to content

Instantly share code, notes, and snippets.

@skottler
Created April 25, 2012 04:12
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 skottler/2486266 to your computer and use it in GitHub Desktop.
Save skottler/2486266 to your computer and use it in GitHub Desktop.
class nagios::client {
file { "$nrpedir/nrpe.cfg":
owner => $nrpeuser,
group => $nrpegroup,
mode => 644,
content => template("nagios/nrpe.cfg.erb")
}
}
<% if has_variable?("allowed_hosts") then %>
allowed_hosts=<%= allowed_hosts.join(",") %>
<% else %>
allowed_hosts=127.0.0.1
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment