mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Add docs for delete_sshkeys
This commit is contained in:
parent
299032360a
commit
076a6f7166
24
doc/topics/misc.rst
Normal file
24
doc/topics/misc.rst
Normal file
@ -0,0 +1,24 @@
|
||||
================================
|
||||
Miscellaneous Salt Cloud Options
|
||||
================================
|
||||
|
||||
This page describes various miscellaneous options available in Salt Cloud
|
||||
|
||||
Delete SSH Keys
|
||||
===============
|
||||
|
||||
When Salt Cloud deploys an instance, the SSH pub key for the instance is added
|
||||
to the known_hosts file for the user that ran the salt-cloud command. When an
|
||||
instance is deployed, a cloud provider generally recycles the IP address for
|
||||
the instance. When Salt Cloud attempts to deploy an instance using a recycled
|
||||
IP address that has previously been accessed from the same machine, the old key
|
||||
in the known_hosts file will cause a conflict.
|
||||
|
||||
In order to mitigate this issue, Salt Cloud can be configured to remove old
|
||||
keys from the known_hosts file when destroying the node. In order to do this,
|
||||
the following line needs to be added to the main cloud configuration file:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
delete_sshkeys: True
|
||||
|
Loading…
Reference in New Issue
Block a user