From c7684f38d4de6120768a3997848613e936be7863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Struczy=C5=84ski?= Date: Tue, 5 May 2015 18:06:11 +0200 Subject: [PATCH] Added a possibility of Hiera based configuration --- manifests/init.pp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 4c9a154..8d38c0c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -12,7 +12,19 @@ # include 'cron' # class { 'cron': } -class cron { +class cron ( + $jobs = {}, + $daily = {}, + $hourly = {}, + $monthly = {}, + $weekly = {}, +) { include cron::install + + create_resources('cron::job', $jobs) + create_resources('cron::daily', $daily) + create_resources('cron::hourly', $hourly) + create_resources('cron::monthly', $monthly) + create_resources('cron::weekly', $weekly) }