diff --git a/playbooks/kayobe-seed-vm-base/overrides.yml.j2 b/playbooks/kayobe-seed-vm-base/overrides.yml.j2 index 4cbd700f6..3e036b99a 100644 --- a/playbooks/kayobe-seed-vm-base/overrides.yml.j2 +++ b/playbooks/kayobe-seed-vm-base/overrides.yml.j2 @@ -3,6 +3,12 @@ # Ansible is run directly on the controller. disable_selinux_do_reboot: false +{% if ansible_os_family == 'Debian' %} +# On Ubuntu, use 5 seconds delay to allow for interfaces to come up after ifup +# exits. +interfaces_pause_time: 5 +{% endif %} + # Use the OpenStack infra's Dockerhub mirror. docker_registry_mirrors: - "http://{{ zuul_site_mirror_fqdn }}:8082/" diff --git a/playbooks/kayobe-seed-vm-base/pre.yml b/playbooks/kayobe-seed-vm-base/pre.yml index 9b3c12fa8..8a369a6b7 100644 --- a/playbooks/kayobe-seed-vm-base/pre.yml +++ b/playbooks/kayobe-seed-vm-base/pre.yml @@ -36,6 +36,7 @@ selinux: state: disabled become: True + when: ansible_os_family == 'RedHat' # NOTE(mgoddard): Use the name zz-overrides.yml to ensure this takes # precedence over the standard config files. @@ -53,3 +54,4 @@ shell: cmd: dev/install.sh &> {{ logs_dir }}/ansible/install chdir: "{{ kayobe_src_dir }}" + executable: /bin/bash diff --git a/playbooks/kayobe-seed-vm-base/run.yml b/playbooks/kayobe-seed-vm-base/run.yml index bfda7dda6..7bd57a154 100644 --- a/playbooks/kayobe-seed-vm-base/run.yml +++ b/playbooks/kayobe-seed-vm-base/run.yml @@ -9,7 +9,9 @@ - name: Ensure seed hypervisor is deployed shell: cmd: "{{ kayobe_src_dir }}/dev/seed-hypervisor-deploy.sh > {{ logs_dir }}/ansible/seed-hypervisor-deploy" + executable: /bin/bash - name: Ensure seed is deployed shell: cmd: "{{ kayobe_src_dir }}/dev/seed-deploy.sh &> {{ logs_dir }}/ansible/seed-deploy" + executable: /bin/bash diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 635859d1d..1b10afa36 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -198,3 +198,8 @@ name: kayobe-seed-vm-centos8 parent: kayobe-seed-vm-base nodeset: kayobe-centos8 + +- job: + name: kayobe-seed-vm-ubuntu-focal + parent: kayobe-seed-vm-base + nodeset: kayobe-ubuntu-focal diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 0cf1e8e91..9d5fcbf7e 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -19,6 +19,7 @@ - kayobe-seed-centos8 - kayobe-seed-upgrade-centos8 - kayobe-seed-vm-centos8 + - kayobe-seed-vm-ubuntu-focal gate: queue: kayobe @@ -35,3 +36,4 @@ - kayobe-seed-centos8 - kayobe-seed-upgrade-centos8 - kayobe-seed-vm-centos8 + - kayobe-seed-vm-ubuntu-focal