Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Created June 24, 2014 01:59
Show Gist options
  • Save jstangroome/3e7c5b9739c244584d56 to your computer and use it in GitHub Desktop.
Save jstangroome/3e7c5b9739c244584d56 to your computer and use it in GitHub Desktop.
Include EC2 metadata in facter 2.0.2 facts
--- 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