This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |