ec2launcher 1.0.20 → 1.0.21
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.
- data/CHANGELOG.md +4 -0
- data/lib/ec2launcher/dsl/application.rb +17 -3
- data/lib/ec2launcher/version.rb +1 -1
- data/startup-scripts/setup_instance.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -204,11 +204,25 @@ module EC2Launcher
|
|
204
204
|
@ami_name = other_server.ami_name unless other_server.ami_name.nil?
|
205
205
|
@availability_zone = other_server.availability_zone unless other_server.availability_zone.nil?
|
206
206
|
@basename = other_server.basename unless other_server.basename.nil?
|
207
|
-
|
208
|
-
|
207
|
+
|
208
|
+
unless other_server.block_devices.nil?
|
209
|
+
@block_devices = []
|
210
|
+
other_server.block_devices.each {|bd| @block_devices << bd }
|
211
|
+
end
|
212
|
+
|
213
|
+
unless other_server.elb.nil?
|
214
|
+
@elb = {}
|
215
|
+
other_server.elb.keys.each {|env_name| @elb[env_name] = other_server.elb[env_name] }
|
216
|
+
end
|
217
|
+
|
209
218
|
@instance_type = other_server.instance_type unless other_server.instance_type.nil?
|
210
219
|
@name_suffix = other_server.name_suffix unless other_server.name_suffix.nil?
|
211
|
-
|
220
|
+
|
221
|
+
unless other_server.roles.nil?
|
222
|
+
@roles = []
|
223
|
+
other_server.roles.each {|role| @roles << role }
|
224
|
+
end
|
225
|
+
|
212
226
|
unless other_server.security_groups.nil?
|
213
227
|
other_server.security_groups.keys.each do |env_name|
|
214
228
|
unless @security_groups.has_key? env_name
|
data/lib/ec2launcher/version.rb
CHANGED
@@ -272,7 +272,7 @@ build_block_devices(ephemeral_drive_count, "xvdf") do |device_name, index|
|
|
272
272
|
format_filesystem(system_arch, "/dev/#{device_name}1")
|
273
273
|
|
274
274
|
mount_point = case index
|
275
|
-
when
|
275
|
+
when 0 then "/mnt"
|
276
276
|
else "/mnt/extra#{index - 1}"
|
277
277
|
end
|
278
278
|
mount_device("/dev/#{device_name}1", mount_point, "root", "root", default_fs_type)
|