diff options
-rw-r--r-- | manifests/init.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index cd745d3..06de9b2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,6 +2,10 @@ class timezone { + case $ntp_timezone { + '': { fail("you need to define \$ntp_timezone for ntp module") } + } + # the needed packages package { "tzdata": ensure => installed, } @@ -14,6 +18,11 @@ class timezone { } class ntp inherits timezone { + + case $ntp_servers { + '': { fail("you need to define \$ntp_servers for ntp module") } + } + # the needed packages package { "ntp": ensure => installed, } @@ -50,6 +59,10 @@ class ntpdate inherits timezone { # TODO: add logrotate rule to /var/log/ntpdate.log + case $ntp_pool { + '': { fail("you need to define \$ntp_pool for ntp module") } + } + # the needed packages package { "ntpdate": ensure => present, |