capify-ec2 1.4.10 → 1.4.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +6 -0
- data/lib/capify-ec2.rb +8 -1
- data/lib/capify-ec2/version.rb +1 -1
- data/readme.md +1 -1
- metadata +3 -3
data/Changelog.md
CHANGED
data/lib/capify-ec2.rb
CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'fog'
|
3
3
|
require 'colored'
|
4
4
|
require 'net/http'
|
5
|
+
require 'net/https'
|
5
6
|
require File.expand_path(File.dirname(__FILE__) + '/capify-ec2/server')
|
6
7
|
|
7
8
|
class CapifyEc2
|
@@ -255,10 +256,16 @@ class CapifyEc2
|
|
255
256
|
|
256
257
|
protocol = options[:https] ? 'https://' : 'http://'
|
257
258
|
uri = URI("#{protocol}#{dns}:#{port}#{path}")
|
258
|
-
|
259
|
+
|
259
260
|
puts "[Capify-EC2] Checking '#{uri}' for the content '#{expected_response.inspect}'..."
|
260
261
|
|
261
262
|
http = Net::HTTP.new(uri.host, uri.port)
|
263
|
+
|
264
|
+
if uri.scheme == 'https'
|
265
|
+
http.use_ssl = true
|
266
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
267
|
+
end
|
268
|
+
|
262
269
|
result = nil
|
263
270
|
|
264
271
|
begin
|
data/lib/capify-ec2/version.rb
CHANGED
data/readme.md
CHANGED
@@ -440,7 +440,7 @@ ec2_roles :name => "web",
|
|
440
440
|
}
|
441
441
|
```
|
442
442
|
|
443
|
-
Sets a 10 second timeout, and performs the health check over HTTPS.
|
443
|
+
Sets a 10 second timeout, and performs the health check over HTTPS. Note: When performing the health check over HTTPS, SSL peer verification is turned off, as the EC2 instance public DNS will not match the SSL certificate, causing the health check to fail.
|
444
444
|
|
445
445
|
You can run multiple different healthchecks for a role by specifying the healthcheck as an array instead:
|
446
446
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capify-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 11
|
10
|
+
version: 1.4.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Noah Cantor
|