Created
June 24, 2014 01:59
-
-
Save jstangroome/3e7c5b9739c244584d56 to your computer and use it in GitHub Desktop.
Include EC2 metadata in facter 2.0.2 facts
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
--- ec2.rb.bak 2014-06-24 01:48:07.461985136 +0000 | |
+++ ec2.rb 2014-06-24 01:48:52.548889032 +0000 | |
@@ -28,8 +28,7 @@ | |
end | |
end | |
-if (Facter::Util::EC2.has_euca_mac? || Facter::Util::EC2.has_openstack_mac? || | |
- Facter::Util::EC2.has_ec2_arp?) && Facter::Util::EC2.can_connect? | |
+if Facter::Util::EC2.can_connect? | |
metadata | |
userdata | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment