diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-13 13:40:49 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-13 13:40:49 -0300 |
commit | 3c220c51e0bc99b25120ba8998463b907bf42ac7 (patch) | |
tree | 6d6a5bdeddc1dfafba127eda407719c06ecda3b0 | |
parent | b4221a547d5b7739bd9c76a1c6f75a4536490e2d (diff) | |
download | puppet-nodo-3c220c51e0bc99b25120ba8998463b907bf42ac7.tar.gz puppet-nodo-3c220c51e0bc99b25120ba8998463b907bf42ac7.tar.bz2 |
Addin monkeysphere_nodo class
-rw-r--r-- | manifests/physical.pp | 9 | ||||
-rw-r--r-- | manifests/plug.pp | 9 | ||||
-rw-r--r-- | 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, + } + } +} |