]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
Subscribing reprepro-export-key to .gnupg/secring.gpg
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 15:39:48 +0000 (12:39 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 15:39:48 +0000 (12:39 -0300)
manifests/init.pp

index 2c30adcbdfe225d0948490231f2518fec10eb4da..906ac6fbefde639c96247648af6c213142825d59 100644 (file)
@@ -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,
   }