the can_connect function in ec2.rb always return false.
I modified the code as follows and it seems to have fixed the issue:
Before (Line 9 in ec2.rb): Timeout::timeout(wait_sec) {open(ip, port)}
After: Timeout::timeout(wait_sec) {open("http://#{ip}:#{port}/latest/meta-data")}
After that change, the module seems to work properly in EC2 instances.
Binary package hint: facter
the can_connect function in ec2.rb always return false. :timeout( wait_sec) {open(ip, port)} :timeout( wait_sec) {open("http:// #{ip}:#{ port}/latest/ meta-data" )}
I modified the code as follows and it seems to have fixed the issue:
Before (Line 9 in ec2.rb): Timeout:
After: Timeout:
After that change, the module seems to work properly in EC2 instances.