nat-monitor 1.0.10 → 1.0.11

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: 53d21e0dcaa4528797557bd7513a94aaeb6a1fd6
4
- data.tar.gz: 4616081b6d79caecadd87c23cca881882e06c6b1
3
+ metadata.gz: 0ef71c5eb1a6f5fb396b13cecc77c20a55dd0b32
4
+ data.tar.gz: a4f7ec5adea7a6b00a5f4a96fe32161a3998c004
5
5
  SHA512:
6
- metadata.gz: 40f201d0d17c80394211ffdb6796c9262e485b57a6fe63e7e2fdbd5038ae52cd71b8a530f0d86c27ff845b69c20c671176f1d501de8579d1d3e009a5a4535f5f
7
- data.tar.gz: d0aebc0ee07fae6d3862012d591394a4dee9d33326d72ee9cd0494a02c6c3be08bc5592293ecfe20ae8fd5ee5eeb1497ffca17d2f66d27f1897f283fd03252eb
6
+ metadata.gz: 8ac9f3ec2081be7ff3d6ae382ac0694d605b6ed59ea56ff5b81522840d697d5f4245a2e041389571bc4a9ece8b312b10e57409a364f3bb8a392a2a5abeacd9ce
7
+ data.tar.gz: 012f78d85801e864f838e3a3139664910273d2bdc23db3c9e7516729a49b9da99ec43dcd22948c61630ed6d02a5ac28a2d7cdfc6889a41090af679a9ce8fa100
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Monitors a quorum of NAT servers for an outage and reassigns the specified EC2 route table to point to a working server.
4
4
 
5
+ ## Requirements
6
+
7
+ The basic AWS setup required to make this work is actually pretty complex. I recommend reading my [how-to blog post](http://evertrue.github.io/blog/2015/07/06/the-right-way-to-set-up-nat-in-ec2/). Feedback is highly appreciated.
8
+
5
9
  ## Installation
6
10
 
7
11
  Add this line to your application's Gemfile:
@@ -39,16 +43,25 @@ nodes:
39
43
  i-00000003: 10.0.2.1
40
44
  ```
41
45
 
42
- Optional properties include:
46
+ Optional properties include (Values shown are the defaults):
43
47
  ```yaml
44
48
  pings: 3
45
49
  ping_timeout: 1
46
50
  heartbeat_interval: 10
47
51
  ```
48
52
 
53
+ Optional AWS configuration include:
54
+ ```yaml
55
+ aws_access_key_id: YOUR ACCESS KEY
56
+ aws_secret_access_key: YOUR SECRET KEY
57
+ region: us-east-1
58
+ ```
59
+ Note that:
60
+ - If you don't specify the aws credentials it will use the IAM role of the instance
61
+
49
62
  ## Contributing
50
63
 
51
- 1. Fork it ( https://github.com/[my-github-username]/nat-monitor/fork )
64
+ 1. Fork it ( https://github.com/evertrue/nat-monitor/fork )
52
65
  2. Create your feature branch (`git checkout -b my-new-feature`)
53
66
  3. Commit your changes (`git commit -am 'Add some feature'`)
54
67
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  module EtTools
2
2
  class NatMonitor
3
- VERSION = '1.0.10'
3
+ VERSION = '1.0.11'
4
4
  end
5
5
  end
data/lib/nat-monitor.rb CHANGED
@@ -114,7 +114,9 @@ module EtTools
114
114
  options = { use_iam_profile: true }
115
115
  end
116
116
 
117
+ options[:region] = @conf['region'] if @conf['region']
117
118
  options[:endpoint] = @conf['aws_url'] if @conf['aws_url']
119
+
118
120
  Fog::Compute::AWS.new(options)
119
121
  end
120
122
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nat-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -160,3 +160,4 @@ summary: A service for providing an HA NAT in EC2
160
160
  test_files:
161
161
  - spec/lib/nat-monitor_spec.rb
162
162
  - spec/spec_helper.rb
163
+ has_rdoc: