Create new role legacy-copy-jenkins-scripts to populate
/usr/local/jenkins/slave_scripts.
Move existing scripts from playbooks/legacy to the files directory of
the new role.
Use the new role instead of a task.
Change-Id: I2dcfdf46f0d953afa8100557488a393962dba9bb
Move install-distro-packages.sh from project-config to here so that we
can install it with legacy jobs only.
Add it to legacy/pre.yaml script.
Change-Id: I607baac9308abf7149b71419b9bb4c3c162677bf
The run-tox script uses now zuul-sudo-grep, these lines are not needed
anymore. Remove them.
Depends-On: https://review.openstack.org/538342
Change-Id: I90cbd6af8c24b25e89db719be378e2641d4e5d15
Old legacy jobs depend on zuul-cloner, so move the role out of our
base job into it. This will discourage non legacy jobs from using
zuul-cloner.
Change-Id: Ia09a4acc9c09535bf287208c77257bd3dca7a2bf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Also use a command task to run visudo -c rather than validate as
validate requires %s in the command string (and we don't need or want
it).
Change-Id: I9876af744ecf4995f857b6c7701e7de59b17fa98
Old legacy jobs will continue to want tocheck that the test user isn't
using sudo if sudo has been disabled. Add a zuul version of the checker
script and update the sudo rules to allow the zuul user to run it
Change-Id: I3f941fb57e4574dcca04442b97a70e6acbc395e9
Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>