add a $secring_source parameter to allow for specifying a file resource source for... add_secringsource
authorMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 16:43:07 +0000 (11:43 -0500)
committerMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 16:43:07 +0000 (11:43 -0500)
manifests/repository.pp

index 07ba6e2..7139e71 100644 (file)
@@ -10,7 +10,8 @@ define reprepro::repository (
   $manage_distributions_conf    = true,
   $manage_incoming_conf         = true,
   $handle_incoming_with_cron    = false,
-  $handle_incoming_with_inotify = false
+  $handle_incoming_with_inotify = false,
+  $secring_source = undef,
 ) {
   include reprepro
 
@@ -85,6 +86,7 @@ define reprepro::repository (
   }
   file { "${basedir}/.gnupg/secring.gpg":
     ensure => present,
+    source => $secring_source,
     mode   => '0600',
   }