summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-25 17:48:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-25 17:48:18 -0200
commit438536749c595ed30e65de0aa795fae0f6dbd5d9 (patch)
tree1ad8fb69faa8427f59c0b639c8db8eb0ef6b898e
parentb01c24d6e579109f371344c01dab270523171c56 (diff)
downloadpuppet-reprepro-438536749c595ed30e65de0aa795fae0f6dbd5d9.tar.gz
puppet-reprepro-438536749c595ed30e65de0aa795fae0f6dbd5d9.tar.bz2
Using two execs to ensure the repo key is exported
-rw-r--r--manifests/init.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 5ce0a44..210ca8f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -120,6 +120,10 @@ class reprepro {
"/usr/local/bin/reprepro-export-key":
creates => "$basedir/key.asc",
user => reprepro,
+ require => File["/usr/local/bin/reprepro-export-key"],
+ "/usr/local/bin/reprepro-export-key-update":
+ command => "/usr/local/bin/reprepro-export-key"
+ user => reprepro,
subscribe => File["$basedir/.gnupg/secring.gpg"],
require => File["/usr/local/bin/reprepro-export-key"],
refreshonly => true,