Add bubblewrap for zuul-executor

The zuul-executor used bubblewrap for isolation of ansible-playbook.
Add it into windmill for now, but we really should make this an
ansible-role.

Change-Id: I9a459b5a073052e85fcd80bebd142db1bc217593
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-04 21:33:23 -04:00
parent 1f62b1a622
commit c369bd2c69
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 17 additions and 0 deletions

View File

@ -20,6 +20,23 @@
include_role:
name: openstack.zuul
# TODO(pabelanger): If we want to support xenial, we'll need to use this ppa
# since bubblewrap doesn't exist.
- name: Add openstack-infra PPA for bubblewrap
become: yes
apt_repository:
repo: ppa:openstack-ci-core/bubblewrap
when:
- ansible_distribution_release | lower == "xenial"
# TODO(pabelanger): I'm thinking we should likely create
# ansible-role-bubblewrap to allow user to better manage this dependency.
- name: Ensure bubblewrap is installed.
become: yes
package:
name: bubblewrap
state: installed
- name: Setup openstack.logrotate role.
include_role:
name: openstack.logrotate