cyoi 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 796f3bd2d4a6f62b8eb639192a81813f8b0f1c41
4
- data.tar.gz: fcc08b1b8904a375b20d6bec8056e58f48f7849c
3
+ metadata.gz: f40ad034c190187459af10b580876f6fa0d79fed
4
+ data.tar.gz: 1d7dbe001b4f2178d0637cbe14b0161e67c9032d
5
5
  SHA512:
6
- metadata.gz: 19e530d9f342a65a5994057cb5ab17aaa6110c6796cb1d14f1f61ac5174bf24fb06bb1cc4fad05d89d7fa384f39a43778c0e9e09d33f5e1247b7587b953d7c3c
7
- data.tar.gz: 6a51fac012a8c0e7c81cde8f03459db1f3da12f987a9a502228a62aa96689def94e6617014e6c6bf1ac4fb5cd4fb62e1c2f528db1c49ab4cdf9ce7906f8f21d1
6
+ metadata.gz: 0970dc12135136b9b493b883536573851af110f58ea9582ca7820ad04f12d8abaec10b27e6923a9fe2091f4de175bb17c54f0fa0e32a8e864d1e0d3d00a721f7
7
+ data.tar.gz: 53cbe081b9d407fb26b9987a9a0d6a533da3736fb45c43b7668133cf78e2a35368854dfd72d75b39864b605a7a57733829b766c793a249426ab73a62c02d09a3
data/ChangeLog.md CHANGED
@@ -5,67 +5,68 @@ Cyoi (choose-your-own-infrastructure) is a library to ask an end-user to choose
5
5
 
6
6
  v0.11
7
7
 
8
- - AWS VPC support - choose a VPC, choose a subnet, an IP is selected.
8
+ - AWS VPC support - choose a VPC, choose a subnet, an IP is selected.
9
+ - AWS - Trusty AMIs if looking for an AMI [v0.11.1]
9
10
 
10
11
  v0.10
11
12
  -----
12
13
 
13
- - `blobstores` - create a bucket/container on AWS/OpenStack
14
- - `blobstores` - AWS bucket is made publicly readable via bucket policy [v0.10.1]
14
+ - `blobstores` - create a bucket/container on AWS/OpenStack
15
+ - `blobstores` - AWS bucket is made publicly readable via bucket policy [v0.10.1]
15
16
 
16
17
  v0.9
17
18
  ----
18
19
 
19
- - openstack - prompt for type of image format (qcow2 v raw) and store as provider.options.boot_from_volume
20
- - openstack - provides required parent_group_id field when authorizing security group ports [v0.9.2]
20
+ - openstack - prompt for type of image format (qcow2 v raw) and store as provider.options.boot_from_volume
21
+ - openstack - provides required parent_group_id field when authorizing security group ports [v0.9.2]
21
22
 
22
23
  v0.8
23
24
  ----
24
25
 
25
- - openstack - detection of nova vs neutron networking
26
- - openstack nova - continues to provision a floating IP
27
- - openstack neutron - asks to select a subnet and then an available IP
28
- - create_security_group can take a list of ports to open [v0.8.1]
29
- - allow for legacy API usage of create_security_group [v0.8.2]
30
- - fixed create_security_group support for OpenStack & AWS [v0.8.3]
26
+ - openstack - detection of nova vs neutron networking
27
+ - openstack nova - continues to provision a floating IP
28
+ - openstack neutron - asks to select a subnet and then an available IP
29
+ - create_security_group can take a list of ports to open [v0.8.1]
30
+ - allow for legacy API usage of create_security_group [v0.8.2]
31
+ - fixed create_security_group support for OpenStack & AWS [v0.8.3]
31
32
 
32
33
  v0.7
33
34
  ----
34
35
 
35
- - vsphere provising
36
+ - vsphere provising
36
37
 
37
38
  v0.6
38
39
  ----
39
40
 
40
- - added `cyoi image` - AWS: public AMI for Ubuntu 13.04; OpenStack: choose an Image from menu
41
- - openstack region doesn't repeatably prompt if set to nothing [v0.6.1]
41
+ - added `cyoi image` - AWS: public AMI for Ubuntu 13.04; OpenStack: choose an Image from menu
42
+ - openstack region doesn't repeatably prompt if set to nothing [v0.6.1]
42
43
 
43
44
  v0.5
44
45
  ----
45
46
 
46
- - OpenStack implementation completed by Ferdy!
47
- - More status/progress on actions (v0.5.1)
47
+ - OpenStack implementation completed by Ferdy!
48
+ - More status/progress on actions (v0.5.1)
48
49
 
49
50
  v0.4
50
51
  ----
51
52
 
52
- - switch to using readwritesettings instead of fork of settingslogic
53
- - clean all highline values before setting (v0.4.1 & v0.4.2)
53
+ - switch to using readwritesettings instead of fork of settingslogic
54
+ - clean all highline values before setting (v0.4.1 & v0.4.2)
54
55
 
55
56
  v0.3
56
57
  ----
57
58
 
58
- - added `cyoi keypair` & `cyoi key_pair`
59
+ - added `cyoi keypair` & `cyoi key_pair`
59
60
 
60
61
  v0.2
61
62
  ----
62
63
 
63
- - executable `cyoi` became `cyoi provider`
64
- - added `cyoi address` to prompt or provision an IP address (AWS only at moment)
64
+ - executable `cyoi` became `cyoi provider`
65
+ - added `cyoi address` to prompt or provision an IP address (AWS only at moment)
65
66
 
66
67
  v0.1
67
68
  ----
68
69
 
69
70
  Initial release
70
71
 
71
- - executable `cyoi [settings.yml]` - asks for provider information and stores in settings.yml (AWS & OpenStack)
72
+ - executable `cyoi [settings.yml]` - asks for provider information and stores in settings.yml (AWS & OpenStack)
@@ -2,33 +2,40 @@ require "cyoi/cli/provider_image/image_cli_base"
2
2
  class Cyoi::Cli::Image::ImageCliAws < Cyoi::Cli::Image::ImageCliBase
3
3
 
4
4
  def image_id
5
- ubuntu_1304_image_id
5
+ trusty_image_id
6
6
  end
7
7
 
8
- # Ubuntu 13.04
9
- def ubuntu_1304_image_id
8
+ # Ubuntu 14.04
9
+ def trusty_image_id(region=nil)
10
10
  region = provider_client.attributes.region
11
11
  # http://cloud-images.ubuntu.com/locator/ec2/
12
+ # version: 14.04 LTS
13
+ # arch: amd64
14
+ # instance type: ebs-ssd (not hvm)
15
+ # Using release 20140927
12
16
  image_id = case region.to_s
13
17
  when "ap-northeast-1"
14
- "ami-6b26ab6a"
18
+ "ami-df4b60de"
15
19
  when "ap-southeast-1"
16
- "ami-2b511e79"
20
+ "ami-2ce7c07e"
17
21
  when "eu-west-1"
18
- "ami-3d160149"
22
+ "ami-f6b11181"
19
23
  when "sa-east-1"
20
- "ami-28e43e35"
24
+ "ami-71d2676c"
21
25
  when "us-east-1"
22
- "ami-c30360aa"
26
+ "ami-98aa1cf0"
23
27
  when "us-west-1"
24
- "ami-d383af96"
28
+ "ami-736e6536"
29
+ when "cn-north-1"
30
+ "ami-e642d0df"
25
31
  when "ap-southeast-2"
26
- "ami-84a333be"
32
+ "ami-1f117325"
27
33
  when "us-west-2"
28
- "ami-bf1d8a8f"
34
+ "ami-37501207"
29
35
  end
30
- image_id || raise("Please add Ubuntu 13.04 64bit (EBS) AMI image id to aws.rb#raring_image_id method for region '#{region}'")
36
+ image_id || raise("Please add Ubuntu 14.04 64bit (EBS SSD) AMI image id to aws.rb#trusty_image_id method for region '#{region}'")
31
37
  end
38
+
32
39
  end
33
40
 
34
41
  Cyoi::Cli::Image.register_image_cli("aws", Cyoi::Cli::Image::ImageCliAws)
@@ -61,6 +61,7 @@ class Cyoi::Cli::Providers::ProviderCliAws < Cyoi::Cli::Providers::ProviderCli
61
61
  { label: "Asia Pacific (Sydney) Region", code: "ap-southeast-2" },
62
62
  { label: "Asia Pacific (Tokyo) Region", code: "ap-northeast-1" },
63
63
  { label: "South America (Sao Paulo) Region", code: "sa-east-1" },
64
+ { label: "China (Beijing) Region", code: "cn-north-1" },
64
65
  ]
65
66
  end
66
67
 
@@ -165,33 +165,39 @@ class Cyoi::Providers::Clients::AwsProviderClient < Cyoi::Providers::Clients::Fo
165
165
  volume.server = server
166
166
  end
167
167
 
168
- # Ubuntu 13.04
169
- def raring_image_id(region=nil)
168
+ # Ubuntu 14.04
169
+ def trusty_image_id(region=nil)
170
170
  region = fog_compute.region
171
171
  # http://cloud-images.ubuntu.com/locator/ec2/
172
+ # version: 14.04 LTS
173
+ # arch: amd64
174
+ # instance type: ebs-ssd (not hvm)
175
+ # Using release 20140927
172
176
  image_id = case region.to_s
173
177
  when "ap-northeast-1"
174
- "ami-6b26ab6a"
178
+ "ami-df4b60de"
175
179
  when "ap-southeast-1"
176
- "ami-2b511e79"
180
+ "ami-2ce7c07e"
177
181
  when "eu-west-1"
178
- "ami-3d160149"
182
+ "ami-f6b11181"
179
183
  when "sa-east-1"
180
- "ami-28e43e35"
184
+ "ami-71d2676c"
181
185
  when "us-east-1"
182
- "ami-c30360aa"
186
+ "ami-98aa1cf0"
183
187
  when "us-west-1"
184
- "ami-d383af96"
188
+ "ami-736e6536"
189
+ when "cn-north-1"
190
+ "ami-e642d0df"
185
191
  when "ap-southeast-2"
186
- "ami-84a333be"
192
+ "ami-1f117325"
187
193
  when "us-west-2"
188
- "ami-bf1d8a8f"
194
+ "ami-37501207"
189
195
  end
190
- image_id || raise("Please add Ubuntu 13.04 64bit (EBS) AMI image id to aws.rb#raring_image_id method for region '#{region}'")
196
+ image_id || raise("Please add Ubuntu 14.04 64bit (EBS SSD) AMI image id to aws.rb#trusty_image_id method for region '#{region}'")
191
197
  end
192
198
 
193
199
  def bootstrap(new_attributes = {})
194
- new_attributes[:image_id] ||= raring_image_id(fog_compute.region)
200
+ new_attributes[:image_id] ||= trusty_image_id(fog_compute.region)
195
201
  vpc = new_attributes[:subnet_id]
196
202
 
197
203
  server = fog_compute.servers.new(new_attributes)
data/lib/cyoi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cyoi
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
@@ -10,6 +10,6 @@ describe "cyoi image aws" do
10
10
  setting "provider.credentials.aws_secret_access_key", "aws_secret_access_key"
11
11
  setting "provider.region", "us-west-2"
12
12
  run_interactive(unescape("cyoi image #{settings_dir}"))
13
- assert_passing_with("Confirming: Using image ami-bf1d8a8f")
13
+ assert_passing_with("Confirming: Using image ami-37501207")
14
14
  end
15
15
  end
@@ -28,10 +28,10 @@ describe "cyoi" do
28
28
  settings.image.image_id.should == "ami-123456"
29
29
  end
30
30
 
31
- it "auto-selects Ubuntu 13.04 image in region" do
31
+ it "auto-selects Ubuntu 14.04 image in region" do
32
32
  capture_stdout { subject.execute! }
33
33
  reload_settings!
34
- settings.image.image_id.should == "ami-bf1d8a8f"
34
+ settings.image.image_id.should == "ami-37501207"
35
35
  end
36
36
  end
37
37
 
@@ -63,4 +63,4 @@ describe "cyoi" do
63
63
  settings.image.image_id.should == "chosen-image-id"
64
64
  end
65
65
  end
66
- end
66
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyoi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog