From 2a81aa2c2db9a359aaaed0b642e84d10c423ec1d Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 25 May 2016 08:37:26 -0700 Subject: [PATCH] Ansible launcher: install libselinux-python if necessary This is temporary until we rebuild images with the zuul-worker dib element. Change-Id: Ic1c2a60ab87ad96a0b2b050c6f568d3946b30466 --- zuul/launcher/ansiblelaunchserver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zuul/launcher/ansiblelaunchserver.py b/zuul/launcher/ansiblelaunchserver.py index f5dc158434..3a3c580569 100644 --- a/zuul/launcher/ansiblelaunchserver.py +++ b/zuul/launcher/ansiblelaunchserver.py @@ -777,6 +777,11 @@ class NodeWorker(object): state='directory')) tasks.append(task) + # TODO: remove once zuul-worker DIB element has landed + tasks.append(dict(shell="[ -f /usr/bin/yum ] && " + "sudo /usr/bin/yum install libselinux-python || " + "/bin/true")) + for builder in jjb_job.get('builders', []): if 'shell' in builder: tasks.extend(self._makeBuilderTask(jobdir, builder,