summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2011-06-21 23:02:26 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2011-06-21 23:02:26 -0400
commitbe856169725f0abe7ac5e1633d4774b1d6c0a1d9 (patch)
tree84f3d2b0c825b779efd3c63288523c61407f2953
parent2346777ec2c5937148b26f579bb983d864f6e2d5 (diff)
downloadpuppet-reprepro-be856169725f0abe7ac5e1633d4774b1d6c0a1d9.tar.gz
puppet-reprepro-be856169725f0abe7ac5e1633d4774b1d6c0a1d9.tar.bz2
make repository origin customizeable
-rw-r--r--manifests/init.pp4
-rw-r--r--templates/distributions.erb24
-rw-r--r--templates/index.html.erb2
3 files changed, 17 insertions, 13 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6ac080a..5879991 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,9 @@
class reprepro {
+ case $reprepro_origin {
+ '': { $reprepro_origin = $domain }
+ }
+
case $reprepro_uploaders {
'': { fail("You need the repository uploaders! Please set \$reprepro_uploaders in your config") }
}
diff --git a/templates/distributions.erb b/templates/distributions.erb
index 761ae9a..e004778 100644
--- a/templates/distributions.erb
+++ b/templates/distributions.erb
@@ -1,28 +1,28 @@
-Origin: <%= domain %>
-Label: <%= domain %>
+Origin: <%= reprepro_origin %>
+Label: <%= reprepro_origin %>
Suite: reallyoldstable
Codename: etch
Version: 3.0
Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386
Components: main non-free contrib
-Description: <%= domain %> specific (or backported) packages
+Description: <%= reprepro_origin %> specific (or backported) packages
SignWith: yes
Uploaders: uploaders
-Origin: <%= domain %>
-Label: <%= domain %>
+Origin: <%= reprepro_origin %>
+Label: <%= reprepro_origin %>
Suite: oldstable
Pull: stable
Codename: lenny
Version: 5.0
Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386
Components: main non-free contrib
-Description: <%= domain %> specific (or backported) packages
+Description: <%= reprepro_origin %> specific (or backported) packages
SignWith: yes
Uploaders: uploaders
-Origin: <%= domain %>
-Label: <%= domain %>
+Origin: <%= reprepro_origin %>
+Label: <%= reprepro_origin %>
Suite: stable
Pull: testing
Codename: squeeze
@@ -40,16 +40,16 @@ Pull: unstable
Codename: wheezy
Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386
Components: main non-free contrib
-Description: <%= domain %> specific (or backported) packages
+Description: <%= reprepro_origin %> specific (or backported) packages
SignWith: yes
Uploaders: uploaders
-Origin: <%= domain %>
-Label: <%= domain %>
+Origin: <%= reprepro_origin %>
+Label: <%= reprepro_origin %>
Suite: unstable
Codename: sid
Architectures: i386 amd64 source kfreebsd-amd64 kfreebsd-i386
Components: main non-free contrib
-Description: <%= domain %> specific (or backported) packages
+Description: <%= reprepro_origin %> specific (or backported) packages
SignWith: yes
Uploaders: uploaders-sid
diff --git a/templates/index.html.erb b/templates/index.html.erb
index 6cf4a3e..65ac222 100644
--- a/templates/index.html.erb
+++ b/templates/index.html.erb
@@ -5,7 +5,7 @@
<body>
<h1>Introduction</h1>
-<p>This is the Debian package repository of <%= domain %>. It is used for internal
+<p>This is the Debian package repository of <%= reprepro_origin %>. It is used for internal
distribution of locally built packages not yet part of Debian. Feel free to use
it for yourself, but it comes at no warranty.