mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #29644 from rallytime/esxi-fixes
Fixed a couple more ESXi proxy minion bugs
This commit is contained in:
commit
fe0778dad5
@ -215,7 +215,16 @@ restart the proxy minion--it should just pick up the the new password
|
||||
provided in the list. You can then change pillar at will to move that
|
||||
password to the front and retire the unused ones.
|
||||
|
||||
This also allows you to use any number of potential fallback passwords.
|
||||
Use-case/reasoning for using a list of passwords: You are setting up an
|
||||
ESXi host for the first time, and the host comes with a default password.
|
||||
You know that you'll be changing this password during your initial setup
|
||||
from the default to a new password. If you only have one password option,
|
||||
and if you have a state changing the password, any remote execution commands
|
||||
or states that run after the password change will not be able to run on the
|
||||
host until the password is updated in Pillar and the Proxy Minion process is
|
||||
restarted.
|
||||
|
||||
This allows you to use any number of potential fallback passwords.
|
||||
|
||||
.. note::
|
||||
|
||||
|
@ -711,6 +711,10 @@ def ssh_configured(name,
|
||||
# Check that the first two list items of clean key lists are equal.
|
||||
if clean_current_key[0] != clean_ssh_key[0] or clean_current_key[1] != clean_ssh_key[1]:
|
||||
ssh_key_changed = True
|
||||
else:
|
||||
# If current_ssh_key is None, but we're setting a new key with
|
||||
# either ssh_key or ssh_key_file, then we need to flag the change.
|
||||
ssh_key_changed = True
|
||||
|
||||
# Upload SSH key, if changed.
|
||||
if ssh_key_changed:
|
||||
|
@ -97,7 +97,7 @@ def esxcli(host, user, pwd, cmd, protocol=None, port=None, esxi_host=None):
|
||||
port,
|
||||
cmd)
|
||||
|
||||
ret = salt.modules.cmdmod.run_all(esx_cmd)
|
||||
ret = salt.modules.cmdmod.run_all(esx_cmd, output_loglevel='quiet')
|
||||
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user