Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Modify for Amazon Linux. #85
It seems that /etc/image-id is also added to any other OS by Eucalyptus.
So it is not good to detect the type of OS by this file.
puppetlabs/facter detects Amazon Linux by checking /etc/system-release.
So this will be better:
+ elsif run_command('ls /etc/system-release')[:exit_status] == 0 + 'RedHat' # Amazon Linux