From 3c220c51e0bc99b25120ba8998463b907bf42ac7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 13 Sep 2011 13:40:49 -0300 Subject: Addin monkeysphere_nodo class --- manifests/physical.pp | 9 +-------- manifests/plug.pp | 9 +-------- manifests/subsystems/monkeysphere.pp | 10 ++++++++++ 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/manifests/physical.pp b/manifests/physical.pp index 97e55d3..229072d 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -9,6 +9,7 @@ class nodo::physical inherits nodo { include utils::physical include smartmontools include resolver + include monkeysphere_nodo # Vserver configuration $vserver_vdirbase = "/var/vservers" @@ -44,14 +45,6 @@ class nodo::physical inherits nodo { port => '4900', } - # Monkeysphere configuration - monkeysphere_host { "$hostname": - port => $monkeysphere_ssh_port ? { - false => '', - default => $monkeysphere_ssh_port, - } - } - # SMART monitoring include munin::plugins::smart munin::plugin { "smart_sda": diff --git a/manifests/plug.pp b/manifests/plug.pp index 4c5d859..99bde89 100644 --- a/manifests/plug.pp +++ b/manifests/plug.pp @@ -6,19 +6,12 @@ class nodo::plug inherits nodo { include firewall include sysctl include resolver + include monkeysphere_nodo backupninja::sys { "sys": ensure => present, } - # Monkeysphere configuration - monkeysphere_host { "$hostname": - port => $monkeysphere_ssh_port ? { - false => '', - default => $monkeysphere_ssh_port, - } - } - # Munin configuration munin_node { "$hostname": port => '4900', diff --git a/manifests/subsystems/monkeysphere.pp b/manifests/subsystems/monkeysphere.pp index d34a893..8cff4ce 100644 --- a/manifests/subsystems/monkeysphere.pp +++ b/manifests/subsystems/monkeysphere.pp @@ -16,3 +16,13 @@ define monkeysphere_host($port = '') { # Email the server key monkeysphere::email_server_keys { "root": } } + +class monkeysphere_nodo { + # Monkeysphere configuration + monkeysphere_host { "$hostname": + port => $monkeysphere_ssh_port ? { + false => '', + default => $monkeysphere_ssh_port, + } + } +} -- cgit v1.2.3