-class monkeysphere_host(
+define monkeysphere_host(
$port = hiera('nodo::monkeysphere_host::ssh_port', ''),
$mail_recipient = hiera('nodo::root_mail_recipient', 'nobody')
) {
"direct": {
# Apply munin and monkeysphere configuration for
# for directly hosted nodes.
- Munin_node <<| title == $hostname |>>
- Monkeysphere_host <<| title == $hostname |>>
+ Munin_node <<| title == $::hostname |>>
+ Monkeysphere_host <<| title == $::hostname |>>
# Set proxy configuration
$nodo_https_proxy = 'yes'
"third-party": {
# Apply munin and monkeysphere configuration for
# nodes hosted by third-parties.
- munin_node { "$hostname": }
- monkeysphere_host { "$hostname":
+ munin_node { "${::hostname}": }
+ monkeysphere_host { "${::hostname}":
port => $node_ssh_port,
}