This issue has recently surfaced in our implementation using Salt...
When a VM is recycled/decommissioned/destroyed by a process external to the salt-master that VM's key should then be deleted on the salt-master.
From the command line on the salt-master this would simply require "salt-key --delete MY_VM_ID"
or in the case of a local script, "salt-key --yes --delete ${MY_VM_ID}"
The problem is when calling "salt-key" remotely to the salt-master. The Salt CLI has an API but appears to be "Local only".
Using the existing Salt framework is there a way call "salt-key" from an external machine not running a Salt master or minion ?
Is this problem solved by Salt UI?
Is "ssh -t 'salt-key --yes --delete MY_VM_ID' my best option today?
Thanks,
-ed lane