mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Salt Cloud: add centos
default user for official CentOS AMIs (#35931)
This commit is contained in:
parent
580e0d4aa7
commit
b87e4f1e85
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user