Skip to content

Instantly share code, notes, and snippets.

View lskillen's full-sized avatar
🚀
Onwards and upwards'ing!

Lee Skillen lskillen

🚀
Onwards and upwards'ing!
View GitHub Profile
@rossdakin
rossdakin / attributes_default.rb
Last active August 29, 2015 14:10
Chef cookbook for creating NAT boxes (intended for use with AWS OpsWorks) – does not do any health checks, HA, nor automatic route table (re)configuration.
# my_nat_cookbook/attributes/default.rb
# specify your CIDR in custom JSON somewhere: { "my_nat_cookbook": { "source_cidr": "10.1.0.0/16" } }
default[:deliv_nat][:source_cidr] = '0.0.0.0/0'
default[:deliv_nat][:aws_region] = node[:opsworks][:instance][:region]
default[:deliv_nat][:ec2_instance_id] = node[:opsworks][:instance][:aws_instance_id]