vagrant-mos 0.8.46 → 0.8.49
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 +4 -4
- data/lib/vagrant-mos/action/connect_mos.rb +1 -0
- data/lib/vagrant-mos/action/run_instance.rb +11 -9
- data/lib/vagrant-mos/action/terminate_instance.rb +6 -6
- data/lib/vagrant-mos/config.rb +2 -2
- data/lib/vagrant-mos/version.rb +1 -1
- data/spec/vagrant-mos/config_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c350a1139be7f4dae4b40159244cba1a80c49c
|
4
|
+
data.tar.gz: 23d499bae32002b845077d98bd72e6dfa65eb0fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501cc32dd30fcbd949a927123f2211f5b5761ae0530814b0930521120cf30966bde81bc42159b36fa28013854111711b4fb78bc2c4445015a0d695cde8e5e019
|
7
|
+
data.tar.gz: 1b6d8ee950e0a74f0499556dfea70996da13d9b8dab41876f476806b35814ec4de5ebfa90e068423528e93ac7b2361c3db0597e0f57b9f6d178739f4318eb6b7
|
@@ -36,7 +36,7 @@ module VagrantPlugins
|
|
36
36
|
tags = region_config.tags
|
37
37
|
user_data = region_config.user_data
|
38
38
|
block_device_mapping = region_config.block_device_mapping
|
39
|
-
elastic_ip = region_config.elastic_ip
|
39
|
+
#elastic_ip = region_config.elastic_ip
|
40
40
|
terminate_on_shutdown = region_config.terminate_on_shutdown
|
41
41
|
iam_instance_profile_arn = region_config.iam_instance_profile_arn
|
42
42
|
iam_instance_profile_name = region_config.iam_instance_profile_name
|
@@ -50,9 +50,9 @@ module VagrantPlugins
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# If there is a subnet ID then warn the user
|
53
|
-
if subnet_id && !elastic_ip
|
54
|
-
|
55
|
-
end
|
53
|
+
#if subnet_id && !elastic_ip
|
54
|
+
# env[:ui].warn(I18n.t("vagrant_mos.launch_vpc_warning"))
|
55
|
+
#end
|
56
56
|
|
57
57
|
# Launch!
|
58
58
|
env[:ui].info(I18n.t("vagrant_mos.launching_instance"))
|
@@ -65,7 +65,7 @@ module VagrantPlugins
|
|
65
65
|
env[:ui].info(" -- IAM Instance Profile ARN: #{iam_instance_profile_arn}") if iam_instance_profile_arn
|
66
66
|
env[:ui].info(" -- IAM Instance Profile Name: #{iam_instance_profile_name}") if iam_instance_profile_name
|
67
67
|
env[:ui].info(" -- Private IP: #{private_ip_address}") if private_ip_address
|
68
|
-
env[:ui].info(" -- Elastic IP: #{elastic_ip}") if elastic_ip
|
68
|
+
#env[:ui].info(" -- Elastic IP: #{elastic_ip}") if elastic_ip
|
69
69
|
env[:ui].info(" -- User Data: yes") if user_data
|
70
70
|
env[:ui].info(" -- Security Groups: #{security_groups.inspect}") if !security_groups.empty?
|
71
71
|
env[:ui].info(" -- User Data: #{user_data}") if user_data
|
@@ -159,10 +159,10 @@ module VagrantPlugins
|
|
159
159
|
@logger.info("Time to instance ready: #{env[:metrics]["instance_ready_time"]}")
|
160
160
|
|
161
161
|
# Allocate and associate an elastic IP if requested
|
162
|
-
if elastic_ip
|
163
|
-
|
164
|
-
|
165
|
-
end
|
162
|
+
#if elastic_ip
|
163
|
+
# domain = subnet_id ? 'vpc' : 'standard'
|
164
|
+
# do_elastic_ip(env, domain, server, elastic_ip)
|
165
|
+
#end
|
166
166
|
|
167
167
|
if !env[:interrupted]
|
168
168
|
env[:metrics]["instance_ssh_time"] = Util::Timer.time do
|
@@ -210,6 +210,7 @@ module VagrantPlugins
|
|
210
210
|
!rules.select { |r| (r["fromPort"]..r["toPort"]).include?(port) }.empty?
|
211
211
|
end
|
212
212
|
|
213
|
+
=begin
|
213
214
|
def do_elastic_ip(env, domain, server, elastic_ip)
|
214
215
|
if elastic_ip =~ /\d+\.\d+\.\d+\.\d+/
|
215
216
|
begin
|
@@ -273,6 +274,7 @@ module VagrantPlugins
|
|
273
274
|
raise Errors::FogError,
|
274
275
|
:message => message
|
275
276
|
end
|
277
|
+
=end
|
276
278
|
|
277
279
|
def terminate(env)
|
278
280
|
destroy_env = env.dup
|
@@ -16,14 +16,14 @@ module VagrantPlugins
|
|
16
16
|
region = env[:machine].provider_config.region
|
17
17
|
region_config = env[:machine].provider_config.get_region_config(region)
|
18
18
|
|
19
|
-
elastic_ip = region_config.elastic_ip
|
19
|
+
#elastic_ip = region_config.elastic_ip
|
20
20
|
|
21
21
|
# Release the elastic IP
|
22
|
-
ip_file = env[:machine].data_dir.join('elastic_ip')
|
23
|
-
if ip_file.file?
|
24
|
-
|
25
|
-
|
26
|
-
end
|
22
|
+
#ip_file = env[:machine].data_dir.join('elastic_ip')
|
23
|
+
#if ip_file.file?
|
24
|
+
# release_address(env,ip_file.read)
|
25
|
+
# ip_file.delete
|
26
|
+
#end
|
27
27
|
|
28
28
|
# Destroy the server and remove the tracking ID
|
29
29
|
env[:ui].info(I18n.t("vagrant_mos.terminating"))
|
data/lib/vagrant-mos/config.rb
CHANGED
@@ -170,7 +170,7 @@ module VagrantPlugins
|
|
170
170
|
@user_data = UNSET_VALUE
|
171
171
|
@use_iam_profile = UNSET_VALUE
|
172
172
|
@block_device_mapping = []
|
173
|
-
|
173
|
+
#@elastic_ip = UNSET_VALUE
|
174
174
|
@iam_instance_profile_arn = UNSET_VALUE
|
175
175
|
@iam_instance_profile_name = UNSET_VALUE
|
176
176
|
@terminate_on_shutdown = UNSET_VALUE
|
@@ -283,7 +283,7 @@ module VagrantPlugins
|
|
283
283
|
@private_ip_address = nil if @private_ip_address == UNSET_VALUE
|
284
284
|
|
285
285
|
# Acquire an elastic IP if requested
|
286
|
-
|
286
|
+
#@elastic_ip = nil if @elastic_ip == UNSET_VALUE
|
287
287
|
|
288
288
|
# Default region is us-east-1. This is sensible because MOS
|
289
289
|
# generally defaults to this as well.
|
data/lib/vagrant-mos/version.rb
CHANGED
@@ -34,7 +34,7 @@ describe VagrantPlugins::MOS::Config do
|
|
34
34
|
its("user_data") { should be_nil }
|
35
35
|
its("use_iam_profile") { should be_false }
|
36
36
|
its("block_device_mapping") {should == [] }
|
37
|
-
its("elastic_ip") { should be_nil }
|
37
|
+
#its("elastic_ip") { should be_nil }
|
38
38
|
its("terminate_on_shutdown") { should == false }
|
39
39
|
its("ssh_host_attribute") { should be_nil }
|
40
40
|
its("monitoring") { should == false }
|