Salt Cloud: add centos default user for official CentOS AMIs (#35931)

This commit is contained in:
Denys Havrysh 2016-08-31 18:41:55 +03:00 committed by Nicole Thomas
parent 580e0d4aa7
commit b87e4f1e85

View File

@ -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: