summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-28 14:27:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-28 14:27:57 -0300
commit2a1a535fe6db6a8528062c61d69a3730242884b3 (patch)
tree866d5a320d9b1ac5100f6e2f6aa449fddc8e50e4
parentb2ffc501bbb68d261639465dc9979e42df2bfa98 (diff)
downloadpuppet-puppet-2a1a535fe6db6a8528062c61d69a3730242884b3.tar.gz
puppet-puppet-2a1a535fe6db6a8528062c61d69a3730242884b3.tar.bz2
Moving 'puppet::update::method' hiera call to puppet::repo
-rw-r--r--manifests/repo.pp2
-rw-r--r--manifests/repo/update.pp2
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/repo.pp b/manifests/repo.pp
index 4826737..a9ebd4f 100644
--- a/manifests/repo.pp
+++ b/manifests/repo.pp
@@ -1,7 +1,7 @@
# manage a git repo that updates /etc/puppet
class puppet::repo(
$ensure = present,
- $method = 'cron',
+ $method = hiera('puppet::update::method', 'cron')
) {
include puppet
diff --git a/manifests/repo/update.pp b/manifests/repo/update.pp
index 6dc4254..7cb406b 100644
--- a/manifests/repo/update.pp
+++ b/manifests/repo/update.pp
@@ -1,6 +1,6 @@
class puppet::repo::update(
$ensure = present,
- $method = hiera('puppet::update::method', 'cron')
+ $method = 'cron',
) {
class { 'puppet::repo':
method => $method,