mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Support detecting Amazon Linux AMI's.
This commit is contained in:
parent
4949f3021a
commit
1f43e216d9
1 changed files with 10 additions and 0 deletions
|
@ -322,6 +322,16 @@ __gather_linux_system_info() {
|
|||
slackware ) n="Slackware" ;;
|
||||
turbolinux ) n="TurboLinux" ;;
|
||||
unitedlinux ) n="UnitedLinux" ;;
|
||||
system )
|
||||
while read -r line; do
|
||||
[ "${n}x" != "systemx" ] && break
|
||||
case "$line" in
|
||||
*Amazon*Linux*AMI*)
|
||||
n="Amazon Linux AMI"
|
||||
break
|
||||
esac
|
||||
done < /etc/${rsource}
|
||||
;;
|
||||
* ) n="${n}" ;
|
||||
esac
|
||||
DISTRO_NAME=$n
|
||||
|
|
Loading…
Add table
Reference in a new issue