Skip to content

Commit

Permalink
Fix command stubs on non-debian-based platforms
Browse files Browse the repository at this point in the history
Also add saltfactories dep required in master as of 7 May.
  • Loading branch information
terminalmage committed May 9, 2020
1 parent e2d7fa8 commit a298d01
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 18 deletions.
4 changes: 2 additions & 2 deletions arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions arch/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions cent6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions cent6/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions cent7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions cent7/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions cent8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions cent8/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions debian10/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions debian8/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions debian9/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions fedora30/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions fedora30/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions fedora31/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions fedora31/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions leap151/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions leap151/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions leap152/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions leap152/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
4 changes: 2 additions & 2 deletions tumbleweed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ RUN echo test >/etc/salt/minion_id
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
echo -e "#!/bin/bash\n\npython3 /testing/scripts/$cmd \"\$@\"" >/usr/bin/$cmd; \
chmod 0755 /usr/bin/$cmd; \
done

# Now do Python 2
RUN for cmd in salt salt-api salt-call salt-cloud salt-cp salt-extend \
salt-key salt-master salt-minion salt-proxy salt-run salt-ssh \
salt-syndic salt-unity spm; do \
echo "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
echo -e "#!/bin/bash\n\npython2 /testing/scripts/$cmd \"\$@\"" >/usr/bin/${cmd}2; \
chmod 0755 /usr/bin/${cmd}2; \
done

Expand Down
1 change: 1 addition & 0 deletions tumbleweed/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions ubuntu16/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions ubuntu18/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down
1 change: 1 addition & 0 deletions ubuntu20/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pyserial==3.4 # via junos-eznc
pytest-helpers-namespace==2019.1.8
pytest-salt-runtests-bridge==2019.7.10
pytest-salt==2019.12.27
pytest-salt-factories==0.10.4
pytest-tempdir==2019.10.12
pytest==4.6.6
python-dateutil==2.8.0 # via botocore, croniter, kubernetes, moto, vcert
Expand Down

0 comments on commit a298d01

Please sign in to comment.