aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-28 18:08:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-28 18:08:45 -0200
commite5b5328d7bc837ede9e9b6bf0db6f25370001d61 (patch)
treecd381b223a8f540c25d313931ff1aa4d47db35c6 /manifests/host.pp
parent021ea7edd7a14a94b8d45dd382ba59af4f310505 (diff)
downloadpuppet-nodo-e5b5328d7bc837ede9e9b6bf0db6f25370001d61.tar.gz
puppet-nodo-e5b5328d7bc837ede9e9b6bf0db6f25370001d61.tar.bz2
Moving some stuff at host and personal classes
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp27
1 files changed, 15 insertions, 12 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index a38ed53..5682aea 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -10,33 +10,36 @@ class nodo::host inherits nodo {
monkeysphere_host { "${::hostname}": }
- # Firewall configuration
+ # Firewall
class { 'firewall': }
- # Vserver configuration
- class { 'vserver::host':
- vdirbase => "/var/vservers",
- }
-
- # Monitoring
- if !defined('monitor') {
- class { 'monitor':
- type => 'host',
- use_nagios => hiera('nodo::host::use_nagios', True),
+ # Vserver
+ if $::lsbdistcodename == 'squeeze' {
+ class { 'vserver::host':
+ vdirbase => "/var/vservers",
}
}
- # Time configuration
+ # Time
$ntpdate = hiera('nodo::host::ntpdate', True)
case $ntpdate {
false: { class { 'timezone': } }
default: { class { 'ntpdate': } }
}
+ # Backup
backupninja::sys { "sys":
ensure => present,
}
+ # Monitoring
+ if !defined('monitor') {
+ class { 'monitor':
+ type => 'host',
+ use_nagios => hiera('nodo::host::use_nagios', True),
+ }
+ }
+
# Munin configuration
$munin = hiera('nodo::host::use_munin', True)
if $munin == true {