chef-handler-opsmatic 0.0.1 → 0.0.2

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: 64eb12dc56908853517b1f1529109eccc2b05e2d
4
- data.tar.gz: 90331dbc1e8186e558f0ca69c7337189deee26b3
3
+ metadata.gz: 7cf9a7089a3999599943f89e062dc383258cae24
4
+ data.tar.gz: de28ee179b1e77274ac15dde3ead501b914a308f
5
5
  SHA512:
6
- metadata.gz: 71481007f5d064ea9935e86edcaa8e53eae62f15aedd918510aefd64eb4cb88b2b9562c085c635fe3c568ab17c4fcf2153c9bcf43b2859ae5adaae586b183d49
7
- data.tar.gz: 4df527a418c18ac419bb77e4b21f8af9b2b50ed09a610f87d6280d8d2c1929de7431d2843aaa9607c99e28cbe5d9dfdf1c3b11f199e1338cb8fa1a346ebb8eeb
6
+ metadata.gz: 5b98b300887a121cb461c085e24c4f4c2de38342200497a3ecefff27b13f4301fc7f07a3481815d206faab1f6a56db0a722a9c67db3ccaa5a7ee8b80f7bb2b8a
7
+ data.tar.gz: 020fadf1be1bea5a68bd7f084f3b4214aca016b82d79828bb5a3b0df84e82a585033061af6afc5192a149f34873999d9748731b2d97d71008e4c90e7dbf03108
data/README.md CHANGED
@@ -5,7 +5,7 @@ The chef-handler-opsmatic gem is a Chef report and exception handler
5
5
  ## Usage
6
6
 
7
7
  The easiest way to install this handler in your Chef environment is with the `handler`
8
- recipe in the [chef-opsmatic](https://github.com/opsmatic/chef-opsmatic) cookbook.
8
+ recipe in the [opsmatic-cookbook](https://github.com/opsmatic/opsmatic-cookbook) cookbook.
9
9
 
10
10
  ## Contributing
11
11
 
@@ -72,6 +72,11 @@ class Chef
72
72
  http.read_timeout = 2
73
73
  http.use_ssl = (url.scheme == 'https')
74
74
 
75
+ if not @config[:ssl_peer_verify]
76
+ # TODO: need to work out how to correctly find CA's on all platforms
77
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
78
+ end
79
+
75
80
  request = Net::HTTP::Post.new(url.request_uri)
76
81
  request["Content-Type"] = "application/json"
77
82
  request.body = [event].to_json
@@ -1,7 +1,7 @@
1
1
  module Chef
2
2
  module Handler
3
3
  module Opsmatic
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-opsmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Barczak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-05 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler