9206748e9d
In zuul, roles can be easily included cross repos, while playbooks need to be replicated and copied. This change creates three roles roles, and move tasks to be included in the new roles, so the playbooks are just minimal, and replicating them is not a problem since the logic is in roles that are included The common variables are loaded in the role common, the node preparation i moved to the prepare-node role, and it's now called in the pre,yaml playbook in pre-run. run-test role contains the rendering of bash scripts and effective test run Taiga-id: https://tree.taiga.io/project/tripleo-ci-board/task/112 Change-Id: Ie51fcfbee79727d04fca47d26a5ed8ad44ed3bf6
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
workspace: "{{ ansible_user_dir }}/workspace"
|
|
tripleo_root: "{{ ansible_user_dir }}/src/git.openstack.org/openstack"
|
|
tripleo_ci_dir: "{{ ansible_user_dir }}/{{ zuul.projects['git.openstack.org/openstack-infra/tripleo-ci'].src_dir }}"
|
|
tripleo_quickstart_dir: "{{ ansible_user_dir }}/{{ zuul.projects['git.openstack.org/openstack/tripleo-quickstart'].src_dir }}"
|
|
vxlan_vars: "-e toci_vxlan_networking='false' -e vxlan_networking='false'"
|
|
extra_vars: ""
|
|
job_featureset_file: "{{ tripleo_quickstart_dir }}/config/general_config/featureset{{ featureset }}.yml"
|
|
|
|
featureset_conf: >-
|
|
{% if common_featureset is defined -%}
|
|
--extra-vars @{{ tripleo_quickstart_dir }}/config/general_config/{{ common_featureset }} {% endif -%}
|
|
--extra-vars @{{ job_featureset_file }}
|
|
|
|
periodic: >-
|
|
{% if 'periodic' in zuul.pipeline -%}
|
|
true
|
|
{%- else -%}
|
|
false
|
|
{%- endif %}
|
|
|
|
nodepool_provider: "{{ hostvars[inventory_hostname].nodepool.provider }}"
|
|
|
|
rhcloud: >-
|
|
{%- if nodepool_provider in ['rdo-cloud-tripleo', 'rdo-cloud'] -%}
|
|
rdocloud
|
|
{%- elif nodepool_provider == 'vexxhost-rdo-ca-ymq-1' -%}
|
|
vexxhost
|
|
{%- endif -%}
|
|
|
|
nodes_file: >-
|
|
{% if nodes is defined -%}
|
|
{{ tripleo_quickstart_dir }}/config/nodes/{{ nodes }}.yml
|
|
{%- endif %}
|
|
|
|
nodes_args: >-
|
|
{% if nodes is defined -%}
|
|
--extra-vars @{{ nodes_file }}
|
|
{%- endif %}
|
|
|
|
rdo_env_vars: >-
|
|
{% if rhcloud -%}
|
|
--extra-vars @{{ tripleo_ci_dir }}/toci-quickstart/config/testenv/{{ environment_type }}-{{ rhcloud }}.yml
|
|
{%- endif %}
|
|
|
|
env_vars: "--extra-vars @{{ tripleo_ci_dir }}/toci-quickstart/config/testenv/{{ environment_type }}.yml {{ rdo_env_vars }}"
|