Skip to content

Instantly share code, notes, and snippets.

@Argon-
Last active August 29, 2015 14:21
Show Gist options
  • Save Argon-/9e270f35269f5679f671 to your computer and use it in GitHub Desktop.
Save Argon-/9e270f35269f5679f671 to your computer and use it in GitHub Desktop.
require 'formula'
class Juju < Formula
homepage 'https://juju.ubuntu.com'
url 'https://launchpad.net/juju-core/1.24/1.24-beta3/+download/juju-core_1.24-beta3.tar.gz'
sha1 '2186c1e52115db39338ca57e1d2cf6aa56f5b5b0'
depends_on 'go' => :build
patch :DATA
def install
ENV["GOPATH"] = buildpath
system "go", "build", "github.com/juju/juju/cmd/juju"
system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata"
bin.install "juju", "juju-metadata"
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
end
test do
system "#{bin}/juju", "version"
end
end
__END__
diff --git a/src/github.com/juju/juju/provider/ec2/instancetype.go b/src/github.com/juju/juju/provider/ec2/instancetype.go
index 54da459..b59b8af 100644
--- a/src/github.com/juju/juju/provider/ec2/instancetype.go
+++ b/src/github.com/juju/juju/provider/ec2/instancetype.go
@@ -298,7 +298,7 @@ var allInstanceTypes = []instances.InstanceType{
Mem: 1024,
// Burstable baseline is 10% (from http://aws.amazon.com/ec2/faqs/#burst)
CpuPower: instances.CpuPower(10),
- VirtType: &paravirtual,
+ VirtType: &hvm,
},
{ // General Purpose, 3rd generation.
Name: "t2.small",
@@ -307,7 +307,7 @@ var allInstanceTypes = []instances.InstanceType{
Mem: 2048,
// Burstable baseline is 20% (from http://aws.amazon.com/ec2/faqs/#burst)
CpuPower: instances.CpuPower(20),
- VirtType: &paravirtual,
+ VirtType: &hvm,
},
{ // General Purpose, 3rd generation.
Name: "t2.medium",
@@ -316,7 +316,7 @@ var allInstanceTypes = []instances.InstanceType{
Mem: 4096,
// Burstable baseline is 40% (from http://aws.amazon.com/ec2/faqs/#burst)
CpuPower: instances.CpuPower(40),
- VirtType: &paravirtual,
+ VirtType: &hvm,
},
{ // Compute-optimized, 3rd generation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment