summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-10-24 14:56:51 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2009-10-24 14:56:51 -0400
commitdd123cc1aceed8739e202dea5f552a31329217cc (patch)
treedc6423457cd2d4eed0c23de8078289d356452f0e
parentf5c85466d3a259be3b6fa6d6ec1ba05225f2a7e5 (diff)
downloadpuppet-reprepro-dd123cc1aceed8739e202dea5f552a31329217cc.tar.gz
puppet-reprepro-dd123cc1aceed8739e202dea5f552a31329217cc.tar.bz2
take into account versions post etch
-rw-r--r--manifests/init.pp19
1 files changed, 13 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index e55f173..140bad7 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -2,12 +2,19 @@ class reprepro {
$basedir = '/srv/reprepro'
- package {
- "reprepro":
- ensure => '3.9.2-1~bpo40+1';
-
- "inoticoming":
- ensure => '0.2.0-1~bpo40+1';
+ case $lsbdistcodename {
+ etch: {
+ package {
+ "reprepro": ensure => '3.9.2-1~bpo40+1';
+ "inoticoming": ensure => '0.2.0-1~bpo40+1';
+ }
+ }
+ default: {
+ package {
+ "reprepro": ensure => 'installed';
+ "inoticoming": ensure => 'installed';
+ }
+ }
}
user { "reprepro":