Index: modules/filtermaster/manifests/init.pp |
diff --git a/modules/filtermaster/manifests/init.pp b/modules/filtermaster/manifests/init.pp |
index 09013d927cff64b36a6f159da2eb6ad65f849e89..bbd9b7b08ed352f717f8fa73be8f786cfd6643f5 100755 |
--- a/modules/filtermaster/manifests/init.pp |
+++ b/modules/filtermaster/manifests/init.pp |
@@ -1,4 +1,7 @@ |
-class filtermaster { |
+class filtermaster( |
+ $repos = hiera('filtermaster::repos', []), |
+ $repo_downloads = hiera('filtermaster::repo_downloads', {}), |
+) { |
Cron { |
environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescripts'], |
@@ -98,7 +101,10 @@ class filtermaster { |
} |
} |
- create_resources('filtermaster::repo_download', $repo_download) |
+ create_resources('filtermaster::repo_download', $repo_downloads) |
+ |
+ repo_download {$repos: |
+ } |
cron {'update_subscription': |
ensure => present, |