diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-11 22:02:36 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-11 22:02:36 -0300 |
commit | 1564ca8593730f0cd5f4d69dcf5a860f73efccb4 (patch) | |
tree | 4dc3feec8631d15ea2c79772fc8abfe0e970d5ef /manifests/base/virtual.pp | |
parent | 60eef74e68f7e3c4ac6ed326a32a5ea0eab7faf4 (diff) | |
download | puppet-nodo-1564ca8593730f0cd5f4d69dcf5a860f73efccb4.tar.gz puppet-nodo-1564ca8593730f0cd5f4d69dcf5a860f73efccb4.tar.bz2 |
Rename vserver to virtual
Diffstat (limited to 'manifests/base/virtual.pp')
-rw-r--r-- | manifests/base/virtual.pp | 35 |
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': } + } + } + +} |