summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-09 12:39:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-09 12:39:48 -0300
commitca415e24dfabf239d792016b5522558c7a9f9828 (patch)
tree9c4eb901550169a2cb9790fcc44015e224e1ea3c
parent425e9ea23d542a1c24df6d712f182850c73986de (diff)
downloadpuppet-reprepro-ca415e24dfabf239d792016b5522558c7a9f9828.tar.gz
puppet-reprepro-ca415e24dfabf239d792016b5522558c7a9f9828.tar.bz2
Subscribing reprepro-export-key to .gnupg/secring.gpg
-rw-r--r--manifests/init.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 2c30adc..906ac6f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -92,6 +92,10 @@ class reprepro {
mode => 700, owner => reprepro, group => reprepro,
ensure => directory;
+ "$basedir/.gnupg/secring.gpg":
+ mode => 600, owner => reprepro, group => reprepro,
+ ensure => present;
+
"/usr/local/bin/reprepro-export-key":
ensure => present,
content => template('reprepro/reprepro-export-key.sh.erb'),
@@ -114,7 +118,7 @@ class reprepro {
"/usr/local/bin/reprepro-export-key":
creates => "$basedir/key.asc",
user => reprepro,
- subscribe => File["$basedir/.gnupg"],
+ subscribe => File["$basedir/.gnupg/secring.gpg"],
require => File["/usr/local/bin/reprepro-export-key"],
refreshonly => true,
}