From e5b5328d7bc837ede9e9b6bf0db6f25370001d61 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 28 Jan 2013 18:08:45 -0200 Subject: Moving some stuff at host and personal classes --- manifests/host.pp | 27 +++++++++++++++------------ manifests/personal.pp | 6 ++++++ manifests/physical.pp | 6 ------ 3 files changed, 21 insertions(+), 18 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 { diff --git a/manifests/personal.pp b/manifests/personal.pp index ca5370b..f1786e1 100644 --- a/manifests/personal.pp +++ b/manifests/personal.pp @@ -16,6 +16,12 @@ class nodo::personal { use_nagios => hiera('nodo::personal::use_nagios', false), } + # Removable media folder + file { [ "/media/usb", "/media/cdrom", "/media/tablet", "/media/phone" ]: + ensure => directory, + mode => 0755, + } + # Misc user data file { "/var/data": ensure => directory, diff --git a/manifests/physical.pp b/manifests/physical.pp index 5f9ffb6..887eb8d 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -12,12 +12,6 @@ class nodo::physical inherits nodo::host { } } - # Removable media folder - file { [ "/media/usb", "/media/cdrom", "/media/tablet", "/media/phone" ]: - ensure => directory, - mode => 0755, - } - # Entropy key $ekey_masterkey = hiera('nodo::physical::ekey_masterkey', '') if $ekey_masterkey != '' { -- cgit v1.2.3