summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-17 02:01:48 +0200
committerintrigeri <intrigeri@boum.org>2010-10-17 02:08:17 +0200
commitb4d6f30faee423c5b544a1d44724890dcb5418a8 (patch)
tree9c5a88146595d10a1b508fec1eb2840e7f2cfaf6 /manifests
parentbcfb35c969de53aa2972a9d2415be5a258a01be8 (diff)
Support $apt_repos for Ubuntu as well.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp16
1 files changed, 13 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8136f25..ab90c90 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -44,9 +44,19 @@ class apt {
'' => 'http://volatile.debian.org/debian-volatile/',
default => "${apt_volatile_url}",
}
- $repos = $apt_repos ? {
- '' => 'main contrib non-free',
- default => "${apt_repos}",
+ case $operatingsystem {
+ 'debian': {
+ $repos = $apt_repos ? {
+ '' => 'main contrib non-free',
+ default => "${apt_repos}",
+ }
+ }
+ 'ubuntu': {
+ $repos = $apt_repos ? {
+ '' => 'main restricted universe multiverse',
+ default => "${apt_repos}",
+ }
+ }
}
package { apt: