This file contains hidden or 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/env ruby | |
| # | |
| # fetch hosts from amazon EC2 meta-data | |
| # | |
| # Based on http://dysinger.net/2008/10/13/using-amazon-ec2-metadata-as-a-simple-dns | |
| # | |
| %w(logger optparse rubygems right_aws resolv pp).each { |l| require l } | |
| LOGGER = Logger.new("/var/log/fetch_hosts.log") |