diff options
author | mh <mh@immerda.ch> | 2012-06-05 18:59:39 -0300 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-06-08 13:09:47 -0300 |
commit | 09c8eaf304d1075980d8d9143545f2f16a1db34d (patch) | |
tree | 57ab2c761e74eb95f873b72a109c2a620656469b /manifests/cron.pp | |
parent | af97bf0e96167e916e36110eb858f257ccf083e6 (diff) |
new style for 2.7
Diffstat (limited to 'manifests/cron.pp')
-rw-r--r-- | manifests/cron.pp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/manifests/cron.pp b/manifests/cron.pp index 5f9f227..5e3cc64 100644 --- a/manifests/cron.pp +++ b/manifests/cron.pp @@ -1,9 +1,23 @@ -class puppet::cron inherits puppet { - case $operatingsystem { +class puppet::cron( + $cron_time, + $config = hiera('puppet_config','/etc/puppet/puppet.conf'), + $http_compression = hiera('puppet_http_compression',false), + $cleanup_clientbucket = hiera('puppet_cleanup_clientbucket',false), + $ensure_version = hiera('puppet_ensure_version', 'installed'), + $ensure_facter_version = hiera('puppet_ensure_facter_version', 'installed'), +) { + class{'puppet': + config => $config, + http_compression => $http_compression, + cleanup_clientbucket => $cleanup_clientbucket, + ensure_version => $ensure_version, + ensure_facter_version => $ensure_facter_version + } + case $::operatingsystem { debian: { include puppet::cron::debian } openbsd: { include puppet::cron::openbsd } default: { - case $kernel { + case $::kernel { linux: { include puppet::cron::linux } default: { include puppet::cron::base } } |