From 6d7d5f85cd4acdfca091238efc94c65a9683c57b Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 6 Feb 2013 14:30:38 -0500 Subject: make Signwith optional, defaulting to the previous setting (yes) --- manifests/init.pp | 3 ++- templates/distributions.erb | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2b1d95e..9b76884 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,7 +8,8 @@ class reprepro ( $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' ){ package { 'reprepro': ensure => 'installed'; diff --git a/templates/distributions.erb b/templates/distributions.erb index 3e8dea8..350d4da 100644 --- a/templates/distributions.erb +++ b/templates/distributions.erb @@ -9,7 +9,7 @@ Version: 5.0 Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages -SignWith: yes +SignWith: <%= signwith %> Uploaders: uploaders Origin: <%= @origin %> @@ -21,7 +21,7 @@ Version: 6.0 Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages -SignWith: yes +SignWith: <%= signwith %> Uploaders: uploaders Origin: <%= @origin %> @@ -31,7 +31,7 @@ Codename: wheezy Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages -SignWith: yes +SignWith: <%= signwith %> Uploaders: uploaders Origin: <%= @origin %> @@ -41,5 +41,5 @@ Codename: sid Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages -SignWith: yes +SignWith: <%= signwith %> Uploaders: uploaders -- cgit v1.2.3