Open SammyTbeile opened 4 years ago
I think this is another instance of a well documented issue: https://github.com/saltstack/salt/issues/24925
Also, for any searchers that end up here before this is fixed I found a workaround where if you pip.install docker
in a salt-call
instead of via the state, it works.
pip_install_docker:
cmd.run:
- name: "salt-call pip.install docker"
Description of Issue
When using
pip.installed
to install docker python sdk for use with the swarm module, calling theswarm.swarm_init
(or any other swam function) in amodule.run
during this execution will fail. The states will both succeed if run in separate runs but not if they're in the same highstate (whether from the same sls file or different sls files).Setup
Steps to Reproduce Issue
Running the above states (either as one sls or two) in the same run:
To view the expected behavior, apply a sls file containing only the first state
And then another containing just the second:
Versions Report
Master:
Minion: