Created
December 1, 2011 15:30
-
-
Save siebertm/1417576 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class munin::host { | |
Munin::Node_config <<||>> { | |
target => $confdir, | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"), | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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