Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Last active July 18, 2017 08:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreampuf/a07fd546857f8444b90d to your computer and use it in GitHub Desktop.
Save dreampuf/a07fd546857f8444b90d to your computer and use it in GitHub Desktop.
Salt-master/Python2.6 execute salt-ssh/Python2.7
# Replace the HAS_XML assign in thin.py
$ sed -i 's#HAS_XML = True#HAS_XML = False#' $(python2.6 -c "import salt; print salt.__path__[0];")/utils/thin.py
# clean up the local thin package cache
rm /var/cache/salt/master/thin/thin.tgz
# addition `-w` and `-W` options in your command
salt-ssh -w -W -i --roster-file ROSTER_FILE 'HOSTNAME' state.sls minion-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment