aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/virtual.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base/virtual.pp')
-rw-r--r--manifests/base/virtual.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/manifests/base/virtual.pp b/manifests/base/virtual.pp
new file mode 100644
index 0000000..7852d79
--- /dev/null
+++ b/manifests/base/virtual.pp
@@ -0,0 +1,35 @@
+class nodo::base::virtual {
+ class { 'ntp::timezone': }
+ class { 'syslog-ng::vserver': }
+
+ backupninja::sys { "sys":
+ ensure => present,
+ partitions => false,
+ hardware => false,
+ dosfdisk => false,
+ dohwinfo => false,
+ }
+
+ $hosting_type = hiera('nodo::vserver::hosting_type', 'direct')
+
+ case $hosting_type {
+ "direct": {
+ # Apply munin and monkeysphere configuration for
+ # for directly hosted nodes.
+ Nodo::Subsystem::Monitor::Munin <<| title == $::hostname |>>
+ Nodo::Subsystem::Monkeysphere <<| title == $::hostname |>>
+ }
+ "third-party": {
+ # Apply munin and monkeysphere configuration for
+ # nodes hosted by third-parties.
+ nodo::subsystem::monitor::munin { "${::hostname}": }
+ monkeysphere_host { "${::hostname}":
+ port => hiera('nodo::vserver::ssh_port', '22'),
+ }
+
+ # Nagios configuration
+ class { 'nodo::subsystem::monitor': }
+ }
+ }
+
+}