}
# Monkeysphere configuration
- monkeysphere_host { "$hostname": }
+ monkeysphere_host { "$hostname":
+ port => $monkeysphere_ssh_port ? {
+ false => '',
+ default => $monkeysphere_ssh_port,
+ }
+ }
# SMART monitoring
include munin::plugins::smart
define instance($context, $ensure = 'running', $proxy = false,
$puppetmaster = false, $gitd = false, $mail = false,
$icecast = false, $sound = false, $ticket = false,
- $memory_limit = false, $distro = 'squeeze', $dns = false) {
+ $memory_limit = false, $distro = 'squeeze', $dns = false,
+ $munin_port = false, $monkeysphere_ssh_port = false) {
# set instance id
if $context <= 9 {
# Create a munin virtual resource to be realized in the node
@@munin_node { "$name":
- port => "49$id",
+ port => $munin_port ? {
+ false => "49$id",
+ default => $munin_port,
+ }
}
# Create a monkeysphere virtual resource to be realized in the node
@@monkeysphere_host { "$name":
- port => "22$id",
+ port => $monkeysphere_ssh_port ? {
+ false => "22$id",
+ default => $monkeysphere_ssh_port,
+ }
}
# Sound support