summaryrefslogtreecommitdiffstats
path: root/lib/facter/ec2.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed inappropriately uncredited Ohai method from ec2 factJames Turnbull2011-05-091-38/+16
|
* Ensures that ARP facts are returned only on EC2 hostsOhad Levy2011-04-061-11/+5
| | | | | | | | ARP facts on large network might lead to inconstant values as we are always using the first ARP entry from the output of the ARP command Signed-off-by: Ohad Levy <ohadlevy@gmail.com>
* Fixed #2346 - A much cleverer EC2 factJames Turnbull2011-03-171-18/+64
| | | | | | | | The fact now checks for an EC2 ARP or in the EU Zone for an EC2 MAC This should mean the fact's return is much more robust The fact also now supports returning userdata (which is a bit ugly given Facter returns strings but a good bookmark for refactor in 2.0)
* Discussion on ec2 facts - #2346Paul Nasrat2011-03-171-2/+5
| | | | | | | | | | | | | | The EC2 fact is completely broken at the moment: * Timeout::Error isn't caught by rescue (due to how it inherits) * The issue of wrong open semantics outlined here, this is causing hidden immediate failure * The fact is going to cause a 2 second wait to every facter run Whilst the following patch fixes the first two, I'm not sure we want to take the timeout hit, we also want to add tests as even simple ruby code can get logic errors such as the open(). Signed-off-by: Paul Nasrat <pnas...@googlemail.com>
* Added EC2 factsJames Turnbull2009-02-281-0/+35