vagrant-mos 0.8.46 → 0.8.49

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 805a035425025f10c0e812b8c8c6a86bb5d9f57b
4
- data.tar.gz: 79631bc72596991fe469e726d751a7cd6979d18b
3
+ metadata.gz: 68c350a1139be7f4dae4b40159244cba1a80c49c
4
+ data.tar.gz: 23d499bae32002b845077d98bd72e6dfa65eb0fb
5
5
  SHA512:
6
- metadata.gz: 5f1bd3b4938b1e03dc62bddc6f9d6e643421bfe7e5f98df87806955fe86a22ee42f16f430c94b04618dbc25443cd8f06dcd4c4dd70b5f8644997d913ed062b20
7
- data.tar.gz: ddbb329f4df6cfef9ed1c6c388b02d3b64573bae7f6d133af5d4134d1352d8799a599853f6e161bbc588065edc01c5c7bd1b75f507925a0225fb2fa61ceca91d
6
+ metadata.gz: 501cc32dd30fcbd949a927123f2211f5b5761ae0530814b0930521120cf30966bde81bc42159b36fa28013854111711b4fb78bc2c4445015a0d695cde8e5e019
7
+ data.tar.gz: 1b6d8ee950e0a74f0499556dfea70996da13d9b8dab41876f476806b35814ec4de5ebfa90e068423528e93ac7b2361c3db0597e0f57b9f6d178739f4318eb6b7
@@ -49,6 +49,7 @@ module VagrantPlugins
49
49
  #include MOS
50
50
 
51
51
  # env[:mos_elb] = Fog::MOS::ELB.new(fog_config.except(:provider, :endpoint))
52
+ @app.call(env)
52
53
  end
53
54
  end
54
55
  end
@@ -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
- env[:ui].warn(I18n.t("vagrant_mos.launch_vpc_warning"))
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
- domain = subnet_id ? 'vpc' : 'standard'
164
- do_elastic_ip(env, domain, server, elastic_ip)
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
- release_address(env,ip_file.read)
25
- ip_file.delete
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"))
@@ -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
- @elastic_ip = UNSET_VALUE
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
- @elastic_ip = nil if @elastic_ip == UNSET_VALUE
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.
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MOS
3
- VERSION = '0.8.46'
3
+ VERSION = '0.8.49'
4
4
  end
5
5
  end
@@ -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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.46
4
+ version: 0.8.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - yangcs2009