Merge "Execute kayobe in verbose mode in CI"
This commit is contained in:
commit
1f83d69aca
@ -15,3 +15,35 @@
|
||||
dest: "/tmp"
|
||||
mode: 0644
|
||||
remote_src: true
|
||||
|
||||
- name: Ensure kayobe is executed in verbose mode
|
||||
lineinfile:
|
||||
path: "{{ kayobe_src_dir }}/dev/config.sh"
|
||||
line: "export KAYOBE_EXTRA_ARGS=-vvv"
|
||||
regexp: "^#export KAYOBE_EXTRA_ARGS=$"
|
||||
|
||||
- block:
|
||||
- name: Ensure previous kayobe directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure previous kayobe repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_src_dir }} {{ previous_kayobe_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
- name: Ensure previous kayobe-config directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_config_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure kayobe-config repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_config_src_dir }} {{ previous_kayobe_config_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
- name: Ensure previous kayobe is executed in verbose mode
|
||||
lineinfile:
|
||||
path: "{{ previous_kayobe_src_dir }}/dev/config.sh"
|
||||
line: "export KAYOBE_EXTRA_ARGS=-vvv"
|
||||
regexp: "^#export KAYOBE_EXTRA_ARGS=$"
|
||||
when: is_upgrade
|
||||
|
@ -1,24 +1,6 @@
|
||||
---
|
||||
- hosts: primary
|
||||
tasks:
|
||||
- name: Ensure previous kayobe directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure previous kayobe repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_src_dir }} {{ previous_kayobe_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
- name: Ensure previous kayobe-config directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_config_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure kayobe-config repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_config_src_dir }} {{ previous_kayobe_config_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
# NOTE(mgoddard): Use the name zz-overrides.yml to ensure this takes
|
||||
# precedence over the standard config files.
|
||||
- name: Ensure kayobe-config override config file exists
|
||||
|
@ -1,24 +1,6 @@
|
||||
---
|
||||
- hosts: primary
|
||||
tasks:
|
||||
- name: Ensure previous kayobe directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure previous kayobe repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_src_dir }} {{ previous_kayobe_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
- name: Ensure previous kayobe-config directory exists
|
||||
file:
|
||||
path: "{{ previous_kayobe_config_src_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Ensure kayobe-config repository is cloned
|
||||
command: >-
|
||||
git clone {{ kayobe_config_src_dir }} {{ previous_kayobe_config_src_dir }} -b stable/{{ previous_release | lower }}
|
||||
|
||||
# NOTE(mgoddard): Use the name zz-overrides.yml to ensure this takes
|
||||
# precedence over the standard config files.
|
||||
- name: Ensure kayobe-config override config file exists
|
||||
|
@ -84,6 +84,7 @@
|
||||
previous_kayobe_config_src_dir: "{{ ansible_env.PWD ~ '/previous/kayobe-config' }}"
|
||||
requirements_src_dir: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['opendev.org/openstack/requirements'].src_dir }}"
|
||||
tenks_src_dir: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['opendev.org/openstack/tenks'].src_dir }}"
|
||||
is_upgrade: "{{ 'upgrade' in zuul.job }}"
|
||||
|
||||
- job:
|
||||
name: kayobe-overcloud-base
|
||||
|
Loading…
Reference in New Issue
Block a user