diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-17 02:01:48 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-17 02:08:17 +0200 |
commit | b4d6f30faee423c5b544a1d44724890dcb5418a8 (patch) | |
tree | 9c5a88146595d10a1b508fec1eb2840e7f2cfaf6 /manifests | |
parent | bcfb35c969de53aa2972a9d2415be5a258a01be8 (diff) |
Support $apt_repos for Ubuntu as well.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 16 |
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: |