summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/repository.pp5
-rw-r--r--templates/distributions.erb6
2 files changed, 7 insertions, 4 deletions
diff --git a/manifests/repository.pp b/manifests/repository.pp
index e974b49..c08e719 100644
--- a/manifests/repository.pp
+++ b/manifests/repository.pp
@@ -10,7 +10,9 @@ 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,
+ $signwith = 'yes',
+ $secring_source = undef,
) {
include reprepro
@@ -85,6 +87,7 @@ define reprepro::repository (
}
file { "${basedir}/.gnupg/secring.gpg":
ensure => present,
+ source => $secring_source,
mode => '0600',
}
diff --git a/templates/distributions.erb b/templates/distributions.erb
index b58b6ea..1f22aab 100644
--- a/templates/distributions.erb
+++ b/templates/distributions.erb
@@ -7,7 +7,7 @@ Pull: testing
Codename: stable
Architectures: <%= @architectures.join(' ') %>
Components: main non-free contrib
-SignWith: yes
+SignWith: <%= signwith %>
Uploaders: uploaders
Origin: <%= @origin %>
@@ -17,7 +17,7 @@ Pull: unstable
Codename: testing
Architectures: <%= @architectures.join(' ') %>
Components: main non-free contrib
-SignWith: yes
+SignWith: <%= signwith %>
Uploaders: uploaders
Origin: <%= @origin %>
@@ -26,5 +26,5 @@ Suite: unstable
Codename: unstable
Architectures: <%= @architectures.join(' ') %>
Components: main non-free contrib
-SignWith: yes
+SignWith: <%= signwith %>
Uploaders: uploaders