aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/host.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 16:32:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 16:32:23 -0300
commit3ae6096fd3108d7edc1f1a98dbb6b11ba6d1fbd3 (patch)
treeb6b84c36610fd2fc1e6a8f6ac7f87b5d132b2c4d /manifests/base/host.pp
parente55f3c60b30042a72d722f21b0c6133faaa78a43 (diff)
downloadpuppet-nodo-3ae6096fd3108d7edc1f1a98dbb6b11ba6d1fbd3.tar.gz
puppet-nodo-3ae6096fd3108d7edc1f1a98dbb6b11ba6d1fbd3.tar.bz2
Renaming base classes
Diffstat (limited to 'manifests/base/host.pp')
-rw-r--r--manifests/base/host.pp55
1 files changed, 55 insertions, 0 deletions
diff --git a/manifests/base/host.pp b/manifests/base/host.pp
new file mode 100644
index 0000000..f57aeb4
--- /dev/null
+++ b/manifests/base/host.pp
@@ -0,0 +1,55 @@
+# Fully capable node able to host other nodes
+class nodo::base::host {
+ include nodo::subsystem::initramfs
+ include nodo::subsystem::modprobe
+ include nodo::subsystem::firewire
+ include nodo::subsystem::sysctl
+ include nodo::subsystem::resolver
+ include nodo::utils::physical
+ class { 'syslog-ng': }
+
+ monkeysphere_host { "${::hostname}": }
+
+ # Firewall
+ class { 'firewall': }
+
+ # Vserver
+ if $::lsbdistcodename == 'squeeze' {
+ $vserver = hiera('nodo::host::use_vserver', True)
+
+ if $vserver == true {
+ class { 'vserver::host':
+ vdirbase => "/var/vservers",
+ }
+ }
+ }
+
+ # Time
+ $ntpdate = hiera('nodo::host::ntpdate', True)
+ case $ntpdate {
+ false: { class { 'timezone': } }
+ default: { class { 'ntpdate': } }
+ }
+
+ # Backup
+ backupninja::sys { "sys":
+ ensure => present,
+ }
+
+ # Monitoring
+ if !defined(Class['nodo::subsystem::monitor']) {
+ class { 'nodo::subsystem::monitor':
+ type => 'host',
+ use_nagios => hiera('nodo::host::use_nagios', True),
+ }
+ }
+
+ # Munin configuration
+ $munin = hiera('nodo::host::use_munin', True)
+ if $munin == true {
+ munin_node { "$hostname":
+ port => '4900',
+ }
+ }
+
+}