diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index 3d4332cf87..c13169798a 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -2418,7 +2418,12 @@ def create(vm_=None, call=None): vm_, __opts__, default_users=( - 'ec2-user', 'ubuntu', 'fedora', 'admin', 'bitnami', 'root' + 'ec2-user', # Amazon Linux, Fedora, RHEL; FreeBSD + 'centos', # CentOS AMIs from AWS Marketplace + 'ubuntu', # Ubuntu + 'admin', # Debian GNU/Linux + 'bitnami', # BitNami AMIs + 'root' # Last resort, default user on RHEL 5, SUSE ) ) @@ -3262,6 +3267,7 @@ def list_nodes_full(location=None, call=None): get_location(vm_) for vm_ in six.itervalues(__opts__['profiles']) if _vm_provider_driver(vm_) ) + # If there aren't any profiles defined for EC2, check # the provider config file, or use the default location. if not locations: