salt stack - How to use autocomplete in saltstack -
i want use bash autocomplete feature saltstack.
salt '*' test.p <tab>
should complete word , make salt '*' test.ping
.
after googling, got following links: salt.bash & cli completion
however, cannot figure out how use it. autocompletion feature not working default. please provide step step guide activate it.
download
salt.bash
file.wget https://raw.githubusercontent.com/saltstack/salt/develop/pkg/salt.bash
copy file /etc/bash_completion.d/
cp salt.bash /etc/bash_completion.d/
logout , layback in. or source file
source /etc/bash_completion.d/
now use salt auto-completion feature
salt '*' tes[[tab]].pi[[tab]]
and result:
salt '*' test.ping
Comments
Post a Comment