From 1bc28015dfebece00475deba04686196d92a7f87 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 6 Feb 2013 21:36:54 -0500 Subject: add a $secring_source parameter to allow for specifying a file resource source for the .gnupg/secring.gpg, setting it to undef by default --- manifests/init.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9b76884..0ad7dc7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -9,7 +9,8 @@ class reprepro ( $manage_incoming_conf = true, $handle_incoming_with_cron = false, $handle_incoming_with_inotify = false, - $signwith = 'yes' + $signwith = 'yes', + $secring_source = undef, ){ package { 'reprepro': ensure => 'installed'; @@ -81,6 +82,7 @@ class reprepro ( mode => '0700', } file { "${basedir}/.gnupg/secring.gpg": + source => $secring_source ensure => present, mode => '0600', } -- cgit v1.2.3