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.

  1. download salt.bash file.

    wget https://raw.githubusercontent.com/saltstack/salt/develop/pkg/salt.bash 
  2. copy file /etc/bash_completion.d/

    cp salt.bash /etc/bash_completion.d/ 
  3. logout , layback in. or source file

    source /etc/bash_completion.d/ 
  4. now use salt auto-completion feature

    salt '*' tes[[tab]].pi[[tab]] 

    and result:

    salt '*' test.ping 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -