Anyone know of a way to interact with the console/terminal over a salt-ssh
command? I'm trying to run vim
to change the subnet and FQDN for about 70 hosts. I could use sed
and company but wondering if we can leverage salt-ssh
for this task. Below, salt runs the command, but I can't interact with vim.
# salt-ssh '*' cmd.run 'vi /etc/hosts'
s^C
Exiting gracefully on Ctrl-c
Exiting gracefully on Ctrl-c
Exiting gracefully on Ctrl-c