From 64982be11197ca2f369f32d171bdc431b8580585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Mon, 7 Jan 2013 17:16:23 -0500 Subject: make architecture list configurable Closes: #3765 --- manifests/init.pp | 1 + templates/distributions.erb | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 0e9630f..e96cf2d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,6 +2,7 @@ class reprepro ( $uploaders, $basedir = '/srv/reprepro', $origin = $::domain, + $architectures = [ 'amd64', 'i386', 'source' ], $basedir_mode = '0771', $incoming_mode = '1777', $manage_distributions_conf = true, diff --git a/templates/distributions.erb b/templates/distributions.erb index 52533e8..7a32b69 100644 --- a/templates/distributions.erb +++ b/templates/distributions.erb @@ -5,7 +5,7 @@ Label: <%= @origin %> Suite: reallyoldstable Codename: etch Version: 3.0 -Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386 +Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages SignWith: yes @@ -17,7 +17,7 @@ Suite: oldstable Pull: stable Codename: lenny Version: 5.0 -Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386 +Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages SignWith: yes @@ -29,7 +29,7 @@ Suite: stable Pull: testing Codename: squeeze Version: 6.0 -Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386 +Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages SignWith: yes @@ -40,7 +40,7 @@ Label: <%= @origin %> Suite: testing Pull: unstable Codename: wheezy -Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386 +Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages SignWith: yes @@ -50,7 +50,7 @@ Origin: <%= @origin %> Label: <%= @origin %> Suite: unstable Codename: sid -Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386 +Architectures: <%= @architectures.join(' ') %> Components: main non-free contrib Description: <%= @origin %> specific (or backported) packages SignWith: yes -- cgit v1.2.3