Skip to content

Commit

Permalink
Add support for Ubuntu 12.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ramereth committed Dec 17, 2012
1 parent 0e2b842 commit 48d59c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/install_deps.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class ganeti_tutorial::install_deps {
$iputils_arping = $ganeti_tutorial::params::iputils_arping
$pycurl_deb = $ganeti_tutorial::params::pycurl_deb
$python_openssl = $ganeti_tutorial::params::python_openssl
$python_pyinotify = $ganeti_tutorial::params::python_pyinotify
$python_pyparsing = $ganeti_tutorial::params::python_pyparsing
Expand Down Expand Up @@ -31,7 +32,7 @@
if ($operatingsystem == "Ubuntu") and ($operatingsystemrelease >= "12.04") {
ganeti_tutorial::wget {
"pycurl-ubuntu-dpkg":
source => "http://ftp.osuosl.org/pub/osl/ganeti-tutorial/python-pycurl_7.19.0-4ubuntu4~precise1_amd64.deb",
source => "http://ftp.osuosl.org/pub/osl/ganeti-tutorial/${pycurl_deb}",
destination => "/root/src/python-pycurl.deb",
require => File["/root/src"];
}
Expand Down
7 changes: 7 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,11 @@
$vim_package_name = "vim"
}
}

if $operatingsystem == "Ubuntu" {
case $operatingsystemrelease {
12.04: { $pycurl_deb = "python-pycurl_7.19.0-4ubuntu4~precise1_amd64.deb" }
12.10: { $pycurl_deb = "python-pycurl_7.19.0-5ubuntu2_amd64.deb" }
}
}
}

0 comments on commit 48d59c0

Please sign in to comment.