summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2013-01-07 17:16:23 -0500
committerAntoine Beaupré <anarcat@koumbit.org>2013-01-07 17:16:23 -0500
commit64982be11197ca2f369f32d171bdc431b8580585 (patch)
tree2db97c75879b408f3346883acd6837537b7713f8
parent801376b8eb09877fbe2553ed74770c417bbdebf9 (diff)
make architecture list configurable
Closes: #3765
-rw-r--r--manifests/init.pp1
-rw-r--r--templates/distributions.erb10
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