CloudyScripts 2.11.46 → 2.11.47
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/help/state_transition_helper.rb +25 -2
- data/lib/scripts/ec2/copy_ami.rb +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
|
|
12
12
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
14
14
|
s.name = 'CloudyScripts'
|
15
|
-
s.version = '2.11.
|
15
|
+
s.version = '2.11.47'
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
|
18
18
|
s.summary = 'Scripts to facilitate programming for infrastructure clouds.'
|
@@ -38,7 +38,7 @@ module StateTransitionHelper
|
|
38
38
|
# Returns:
|
39
39
|
# * OS of the connected machine
|
40
40
|
def connect(dns_name, user_name, ssh_keyfile = nil, ssh_keydata = nil,
|
41
|
-
trials =
|
41
|
+
trials = 10, wait_between_trials = 20)
|
42
42
|
post_message("connecting '#{user_name}' to #{dns_name}...")
|
43
43
|
connected = false
|
44
44
|
last_connection_problem = ""
|
@@ -871,6 +871,15 @@ module StateTransitionHelper
|
|
871
871
|
# aki-81396bc4 ec2-public-images-us-west-1/pv-grub-hd00_1.02-x86_64.gz.manifest.xml
|
872
872
|
# aki-83396bc6 ec2-public-images-us-west-1/pv-grub-hd0_1.02-i386.gz.manifest.xml
|
873
873
|
# aki-8d396bc8 ec2-public-images-us-west-1/pv-grub-hd0_1.02-x86_64.gz.manifest.xml
|
874
|
+
# * US-West-2
|
875
|
+
# aki-dee26fee ec2-public-images-us-west-2/pv-grub-hd00-V1.01-i386.gz.manifest.xml
|
876
|
+
# aki-90e26fa0 ec2-public-images-us-west-2/pv-grub-hd00-V1.01-x86_64.gz.manifest.xml
|
877
|
+
# aki-dce26fec ec2-public-images-us-west-2/pv-grub-hd0-V1.01-i386.gz.manifest.xml
|
878
|
+
# aki-ace26f9c ec2-public-images-us-west-2/pv-grub-hd0-V1.01-x86_64.gz.manifest.xml
|
879
|
+
# aki-c0e26ff0 ec2-public-images-us-west-2/pv-grub-hd00_1.02-i386.gz.manifest.xml
|
880
|
+
# aki-94e26fa4 ec2-public-images-us-west-2/pv-grub-hd00_1.02-x86_64.gz.manifest.xml
|
881
|
+
# aki-c2e26ff2 ec2-public-images-us-west-2/pv-grub-hd0_1.02-i386.gz.manifest.xml
|
882
|
+
# aki-98e26fa8 ec2-public-images-us-west-2/pv-grub-hd0_1.02-x86_64.gz.manifest.xml
|
874
883
|
# * EU-West-1
|
875
884
|
# aki-47eec433 ec2-public-images-eu/pv-grub-hd00-V1.01-i386.gz.manifest.xml
|
876
885
|
# aki-41eec435 ec2-public-images-eu/pv-grub-hd00-V1.01-x86_64.gz.manifest.xml
|
@@ -923,6 +932,18 @@ module StateTransitionHelper
|
|
923
932
|
'aki-772c7f32' => 'aki-rhel-i386',
|
924
933
|
'aki-712c7f34' => 'aki-rhel-x86_64'
|
925
934
|
},
|
935
|
+
'us-west-2' => {'aki-dee26fee' => 'pv-grub-hd00-V1.01-i386',
|
936
|
+
'aki-90e26fa0' => 'pv-grub-hd00-V1.01-x86_64',
|
937
|
+
'aki-dce26fec' => 'pv-grub-hd0-V1.01-i386',
|
938
|
+
'aki-ace26f9c' => 'pv-grub-hd0-V1.01-x86_64',
|
939
|
+
'aki-c0e26ff0' => 'pv-grub-hd00_1.02-i386',
|
940
|
+
'aki-94e26fa4' => 'pv-grub-hd00_1.02-x86_64',
|
941
|
+
'aki-c2e26ff2' => 'pv-grub-hd0_1.02-i386',
|
942
|
+
'aki-98e26fa8' => 'pv-grub-hd0_1.02-x86_64',
|
943
|
+
#RHEL kernel Amazon Kernel ID
|
944
|
+
'' => 'aki-rhel-i386',
|
945
|
+
'' => 'aki-rhel-x86_64'
|
946
|
+
},
|
926
947
|
'eu-west-1' => {'aki-47eec433' => 'pv-grub-hd00-V1.01-i386',
|
927
948
|
'aki-41eec435' => 'pv-grub-hd00-V1.01-x86_64',
|
928
949
|
'aki-4deec439' => 'pv-grub-hd0-V1.01-i386',
|
@@ -992,7 +1013,9 @@ module StateTransitionHelper
|
|
992
1013
|
case endpoint
|
993
1014
|
when /us-east/
|
994
1015
|
region = "us-east-1"
|
995
|
-
when /us-west/
|
1016
|
+
when /us-west-2/
|
1017
|
+
region = "us-west-2"
|
1018
|
+
when /us-west-1/
|
996
1019
|
region = "us-west-1"
|
997
1020
|
when /eu-west/
|
998
1021
|
region = "eu-west-1"
|
data/lib/scripts/ec2/copy_ami.rb
CHANGED
@@ -136,7 +136,7 @@ class CopyAmi < Ec2Script
|
|
136
136
|
aws_device_letter.succ!
|
137
137
|
end
|
138
138
|
device = "/dev/sd#{aws_device_letter}"
|
139
|
-
|
139
|
+
post_message("Using AWS name '#{@context[:temp_device_name]}' and OS name '#{device}'")
|
140
140
|
mount_fs(mount_point, device)
|
141
141
|
# get root partition label and filesystem type
|
142
142
|
#@context[:label] = get_root_partition_label()
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CloudyScripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 125
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 2.11.
|
9
|
+
- 47
|
10
|
+
version: 2.11.47
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthias Jung
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-17 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|