Skip to content

Instantly share code, notes, and snippets.

@siebertm
Created December 1, 2011 15:30
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 siebertm/1417576 to your computer and use it in GitHub Desktop.
Save siebertm/1417576 to your computer and use it in GitHub Desktop.
class munin::host {
Munin::Node_config <<||>> {
target => $confdir,
}
}
define munin::node_config($target = "/etc/munin/munin-conf.d", $group = "default", $address = $name) {
file { "${target}/${name}.conf" :
ensure => present,
owner => "root",
group => "root",
content => template("munin/node_config.conf.erb"),
}
}
node xyz {
@@munin::node_config { $fqdn :
group => $munin_group,
address => extlookup('external-hostname', $fqdn),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment