}
# Time configuration
+ $ntpdate = hiera('nodo::host::ntpdate', True)
case $ntpdate {
- false: { include timezone }
- default: { include ntpdate }
+ false: { class { 'timezone': } }
+ default: { class { 'ntpdate': } }
}
backupninja::sys { "sys":
# Does not work well inside vservers
class { 'runit': ensure => absent }
- # Set timezone and ntp config
- #
- # We config those here but leave class inclusion elsewhere
- # as ntp config differ from server to vserver.
- #
- $ntp_timezone = "Brazil/East"
- $ntp_pool = "south-america.pool.ntp.org"
- $ntp_servers = [ 'a.ntp.br', 'b.ntp.br', 'c.ntp.br' ]
-
# Email delivery configuration
case hiera('nodo::mail_delivery', 'exim') {
'tunnel': {
class nodo::plug inherits nodo {
- include ntpdate
include syslog-ng
include utils::plug
include sysctl
monkeysphere_host { "${::hostname}": }
- class { 'firewall': }
+ class { [ 'ntpdate', 'firewall' ]: }
backupninja::sys { "sys":
ensure => present,
class nodo::vserver inherits nodo {
- include timezone
-
+ class { 'timezone': }
class { 'syslog-ng::vserver': }
backupninja::sys { "sys":