Skip to content

Instantly share code, notes, and snippets.

@samvj
samvj / ec2_enc.rb
Created May 24, 2012 16:11 — forked from lordkev/ec2_enc.rb
Puppet EC2 Security Group ENC
#!/usr/bin/ruby
##
# Classifies a puppet node based on its EC2 security group.
# Requires the AWS gem.
# Also requires a node_groups.yml file which specifies security groups
# and the classes/params that should be applied, in the following
# format (additionally keyed by security group name).
# http://docs.puppetlabs.com/guides/external_nodes.html
#