cookbook 'et_nat', '~> 3.1.2'
et_nat (12) Versions 3.1.2 Follow0
Apache v2.0
cookbook 'et_nat', '~> 3.1.2', :supermarket
knife supermarket install et_nat
knife supermarket download et_nat
et_nat cookbook
A cookbook to provide a NAT for an EC2 VPC (with HA if desired)
Requirements
- An EC2 VPC
- 1 VPC node for a simple NAT or 3 VPC nodes for HA
Usage
- Include
et_nat::default
in your node’s run list. - Refer to @eherot’s “The Right Way to set up NAT in EC2” blog post for more details.
When creating instances using this cookbook, in order to assign a public IP address in your VPC, you’ll want to use a command like this:
knife ec2 server create \ -E prod \ -N prod-nat \ -s subnet-xxxxxxxx \ -f c3.large \ -g sg-xxxxxxxx \ -r "recipe[xyz]" \ --iam-profile nat-ha \ --associate-public-ip
The --associate-public-ip
is especially crucial, as otherwise, the instance will be unable to connect out, nor will it function as a NAT.
Network Configuration
Attributes
-
['nat']['yaml']['mocking']
: Default value istrue
-
['nat']['yaml']['monitor_enabled']
: Default value isfalse
-
['nat']['search_string']
= Default value is'run_list:recipe\[et_nat\]'
Recipes
default
- Installs Fog for making AWS API calls
- Uses the other two recipes in this cookbook to set up the NAT mechanisms
ha
- Provides mechanisms for maintaining high availability of a cluster of NAT instances using Chef Search & a NAT monitor script
- Can set up snitch-style monitoring using Cronitor
- Specify
monitor_token
andmonitor_opts
in your YAML config to create a new Cronitor monitor - Specify
monitor_code
to use an existing Cronitor monitor - See the
cronitor
gem docs for details on what these fields expect
- Specify
iptables
- Does the bulk of the work to set up the NAT
Author
Author:: EverTrue (devops@evertrue.com)
Dependent cookbooks
et_fog ~> 1.2 |
magic ~> 1.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
3.1.2 passed this metric
Contributing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.1.2 passed this metric
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 passed this metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.1.2 passed this metric
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 passed this metric
3.1.2 passed this metric
Testing File Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.2 failed this metric
3.1.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number