Skip to content

Support UCA/Havana, Icehouse and Trusty in Ubuntu. #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,26 @@

module Gridcentric
module Repositories
def self.translate_distro_to_repo_type(distro)
# pversion is node["platform_version"]
def self.translate_distro_to_repo_type(distro, pversion, component, osver)
case distro
when "centos"
return "centos"
when "fedora"
return "rpm"
when "ubuntu"
return "ubuntu"
if component == "vms"
if pversion == "14.04"
return "trusty"
elsif pversion == "13.04"
return "raring"
elsif not ["folsom", "essex", "diablo"].include?(osver)
return "uca/" + osver
else
return "ubuntu"
else
return "ubuntu"
end
when "debian"
return "deb"
else
Expand Down
12 changes: 8 additions & 4 deletions recipes/compute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@
end

# Explicitly upgrade vms low-level components
# We ship qemu-precise for precise, and quantal, as long as UCA points
# to Grizzly or lower. Otherwise distro qemu is fine and we need
# wrapper instead.
if platform?("ubuntu")
if node["platform_version"] == "13.04"
qemu_package = "vms-qemu-raring"
else
# Assume precise otherwise
if (node["platform_version"] == "12.04" ||
node["platform_version"] == "12.10") &&
["folsom", "essex", "diablo", "grizzly"].include?(node["gridcentric"]["os-version"])
qemu_package = "vms-qemu-precise"
else
qemu_package = "vms-qemu-wrapper"
end
elsif platform_family?("rhel")
# We don't have a host of choices here
Expand Down
4 changes: 3 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
else
parts.push(node["gridcentric"]["os-version"])
end
parts.push(Repositories.translate_distro_to_repo_type(node["platform"]))
parts.push(Repositories.translate_distro_to_repo_type(node["platform"],
node["platform_version"], component,
node["gridcentric"]["os-version"]))
node.normal["gridcentric"]["repo"][component]["uri"] = parts.join("/")
end
end
Expand Down