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.
@@ -1,3 +1,9 @@
1
+ ## 1.4.11 (Jun 13, 2013)
2
+
3
+ Features:
4
+
5
+ - When performing a rolling deployment healthcheck over HTTPS, SSL peer verification is disabled, as the EC2 instance public DNS will not match the SSL certificate hostname.
6
+
1
7
  ## 1.4.10 (Jun 13, 2013)
2
8
 
3
9
  Bugfixes:
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Capify
2
2
  module Ec2
3
- VERSION = "1.4.10"
3
+ VERSION = "1.4.11"
4
4
  end
5
5
  end
6
6
 
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 10
10
- version: 1.4.10
9
+ - 11
10
+ version: 1.4.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Noah Cantor