nat-monitor 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -2
- data/lib/nat-monitor/version.rb +1 -1
- data/lib/nat-monitor.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ef71c5eb1a6f5fb396b13cecc77c20a55dd0b32
|
4
|
+
data.tar.gz: a4f7ec5adea7a6b00a5f4a96fe32161a3998c004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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`)
|
data/lib/nat-monitor/version.rb
CHANGED
data/lib/nat-monitor.rb
CHANGED
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.
|
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-
|
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:
|