220 lines
9.0 KiB
YAML
220 lines
9.0 KiB
YAML
# name and tags
|
|
devmode: true
|
|
overcloud_as_undercloud: true
|
|
release: train
|
|
distro_ver: centos8
|
|
dlrn_hash_tag: "{{ job.provider_dlrn_hash_tag_branch[release]|default('current-tripleo') }}"
|
|
dlrn_hash_tag_newest: current
|
|
docker_registry_host: >-
|
|
{% if job is defined and
|
|
job.build_container_images is defined and
|
|
job.build_container_images|default(false)|bool or
|
|
build_container_images|default(false)|bool -%}
|
|
127.0.0.1:5001
|
|
{%- elif job.consumer_job | default(false) | bool -%}
|
|
{{ job.registry_ip_address_branch[release] }}:5001
|
|
{%- else -%}
|
|
{{ job.alt_container_registry|default('quay.io') }}
|
|
{%- endif -%}
|
|
docker_registry_namespace: tripleotraincentos8
|
|
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
|
|
promote_source: current-tripleo
|
|
validate_on: rdo
|
|
|
|
# images
|
|
images:
|
|
- name: overcloud-full
|
|
url: "{{ overcloud_image_url }}"
|
|
type: tar
|
|
- name: ipa_images
|
|
url: "{{ ipa_image_url }}"
|
|
type: tar
|
|
|
|
dlrn_baseurl: https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}
|
|
overcloud_image_url: https://images.rdoproject.org/{{ distro_ver }}/{{ release }}/rdo_trunk/{{ promote_source }}/overcloud-full.tar
|
|
ipa_image_url: https://images.rdoproject.org/{{ distro_ver }}/{{ release }}/rdo_trunk/{{ promote_source }}/ironic-python-agent.tar
|
|
|
|
# NOTE(dviroel): centos-opstools repo is needed for building
|
|
# collectd containers, otherwise keep the current value.
|
|
enable_dlrn_deps_opstools: >-
|
|
{% if job is defined and
|
|
job.build_container_images is defined and
|
|
job.build_container_images|default(false)|bool or
|
|
build_container_images|default(false)|bool -%}
|
|
{{ true|bool }}
|
|
{%- else -%}
|
|
{{ enable_opstools_repo|default(false)|bool }}
|
|
{%- endif -%}
|
|
|
|
repo_cmd_before: |
|
|
sudo rm -rf /etc/yum.repos.d/delorean*;
|
|
sudo rm -rf /etc/yum.repos.d/*.rpmsave;
|
|
|
|
sudo dnf clean all;
|
|
sudo dnf config-manager --disable "*" || true;
|
|
# In https://review.opendev.org/c/765834 a release specific gating-repo is created.
|
|
# The release specifc gating repo is copied to gating.repo for consistency across ci
|
|
# The original file is backed up for logging purposes. Upgrade jobs will run with
|
|
# two releases.
|
|
sudo cp -f /etc/yum.repos.d/gating-repo-{{ release }}.repo /etc/yum.repos.d/gating.repo || true;
|
|
sudo sed -i -e "s/gating-repo-{{ release }}/gating-repo/" /etc/yum.repos.d/gating.repo || true;
|
|
sudo mv /etc/yum.repos.d/gating-repo-{{ release }}.repo /etc/yum.repos.d/gating-repo-{{ release }}.repo_previous || true;
|
|
sudo dnf config-manager --enable gating-repo || true;
|
|
if [ -e /etc/ci/mirror_info.sh ]; then
|
|
source /etc/ci/mirror_info.sh
|
|
else
|
|
# Otherwise, fallback to official mirrors provided by CentOS.
|
|
export NODEPOOL_CENTOS_MIRROR={{ ansible_env['NODEPOOL_CENTOS_MIRROR']|default('http://mirror.centos.org/centos', true) }}
|
|
export NODEPOOL_RDO_PROXY=https://trunk.rdoproject.org
|
|
fi
|
|
{% if dlrn_hash_path_newest is defined and dlrn_hash_path_newest %}
|
|
export DLRN_PATH_TAG_NEWEST="current/{{ dlrn_hash_path_newest }}"
|
|
{% elif dlrn_hash_tag_newest is match("^[a-zA-Z0-9]{32}$") %}
|
|
export DLRN_PATH_TAG_NEWEST="current/{{ dlrn_hash_tag_newest[:2] }}/{{ dlrn_hash_tag_newest[2:4] }}/{{ dlrn_hash_tag_newest }}"
|
|
{% else %}
|
|
export DLRN_PATH_TAG_NEWEST="{{ dlrn_hash_tag_newest }}"
|
|
{% endif %}
|
|
{% if dlrn_hash_path is defined and dlrn_hash_path %}
|
|
export DLRN_PATH_TAG="{{ promote_source }}/{{ dlrn_hash_path }}"
|
|
{% elif dlrn_hash_tag is match("^[a-zA-Z0-9]{32}$") %}
|
|
export DLRN_PATH_TAG="{{ promote_source }}/{{ dlrn_hash_tag[:2] }}/{{ dlrn_hash_tag[2:4] }}/{{ dlrn_hash_tag }}"
|
|
{% else %}
|
|
export DLRN_PATH_TAG="{{ dlrn_hash_tag }}"
|
|
{% endif %}
|
|
rdo_dlrn=`curl --silent https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}/${DLRN_PATH_TAG_NEWEST}/delorean.repo -S 2>>~/dlrn_repo_curl_errors.log | grep baseurl | grep "component/tripleo" | cut -d= -f2`
|
|
if [[ -z "$rdo_dlrn" ]]; then
|
|
echo "Failed to parse dlrn hash"
|
|
exit 1
|
|
fi
|
|
export RDO_DLRN_REPO=${rdo_dlrn/https:\/\/trunk.rdoproject.org/$NODEPOOL_RDO_PROXY}
|
|
|
|
repos:
|
|
- type: file
|
|
filename: delorean.repo
|
|
down_url: "https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}/${DLRN_PATH_TAG}/delorean.repo"
|
|
|
|
# name of delorean-tripleo-component-current? naming is hard
|
|
- type: generic
|
|
reponame: delorean-current
|
|
filename: delorean-current.repo
|
|
baseurl: $RDO_DLRN_REPO
|
|
priority: 10
|
|
includepkgs:
|
|
- ansible-role-container-registry
|
|
- ansible-role-tripleo*
|
|
- ansible-tripleo-ipsec
|
|
- instack
|
|
- instack-undercloud
|
|
- openstack-tripleo-*
|
|
- os-apply-config
|
|
- os-collect-config
|
|
- os-net-config
|
|
- os-refresh-config
|
|
- puppet-cinder
|
|
- puppet-heat
|
|
- puppet-neutron
|
|
- puppet-nova
|
|
- puppet-glance
|
|
- puppet-horizon
|
|
- puppet-ironic
|
|
- puppet-keystone
|
|
- puppet-mistral
|
|
- puppet-openstacklib
|
|
- puppet-swift
|
|
- puppet-tripleo
|
|
- puppet-zaqar
|
|
- python*-tripleo*
|
|
- python*-paunch*
|
|
- paunch-services
|
|
- tripleo-ansible
|
|
- ansible-config_template
|
|
- tripleo-operator-ansible
|
|
|
|
- type: file
|
|
filename: delorean-{{ release }}-deps.repo
|
|
down_url: "https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}/delorean-deps.repo"
|
|
|
|
# CentOS related repos
|
|
- type: generic
|
|
reponame: quickstart-centos-base
|
|
filename: quickstart-centos-base.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/BaseOS/x86_64/os/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-appstreams
|
|
filename: quickstart-centos-appstreams.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/AppStream/x86_64/os/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-powertools
|
|
filename: quickstart-centos-powertools.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/PowerTools/x86_64/os/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-highavailability
|
|
filename: quickstart-centos-highavailability.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/HighAvailability/x86_64/os/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-extras
|
|
filename: quickstart-centos-extras.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/extras/x86_64/os/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-ceph-nautilus
|
|
filename: quickstart-centos-ceph-nautilus.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8-stream/storage/x86_64/ceph-nautilus/
|
|
|
|
- type: generic
|
|
reponame: quickstart-centos-cr
|
|
filename: quickstart-centos-cr.repo
|
|
baseurl: ${NODEPOOL_CENTOS_MIRROR}/8/cr/x86_64/
|
|
enabled: 0
|
|
|
|
repo_cmd_after: |
|
|
# Replace trunk.rdoproject.org to nodepool proxy
|
|
sudo sed -i -e "s|https://trunk.rdoproject.org|$NODEPOOL_RDO_PROXY|g" /etc/yum.repos.d/delorean.repo
|
|
sudo sed -i -e "s|https://trunk.rdoproject.org|$NODEPOOL_RDO_PROXY|g" /etc/yum.repos.d/delorean-{{ release }}-deps.repo
|
|
sudo sed -i -e "s|http://mirror.centos.org/centos|$NODEPOOL_CENTOS_MIRROR|g" /etc/yum.repos.d/delorean-{{ release }}-deps.repo
|
|
# note potential name change - FIX ME
|
|
sudo sed -i -e "s|https://trunk.rdoproject.org|$NODEPOOL_RDO_PROXY|g" /etc/yum.repos.d/delorean-current.repo
|
|
sudo sed -i -e "s|priority=1|priority=20|g" /etc/yum.repos.d/delorean.repo
|
|
{% if not enable_dlrn_deps_opstools|default(false)|bool %}sudo dnf config-manager --save --setopt centos-opstools.enabled=0;
|
|
{%endif %}
|
|
{% if enable_centos_cr_repo|default(false)|bool %}
|
|
dnf config-manager --set-enabled quickstart-centos-cr
|
|
{% endif %}
|
|
sudo rpm -e epel-release || true;
|
|
sudo dnf remove -y rdo-release centos-release-ceph-* centos-release-openstack-* || true;
|
|
sudo rm -rf /etc/yum.repos.d/CentOS-OpenStack-*.repo /etc/yum.repos.d/CentOS-Ceph-*.repo;
|
|
# Disable delorean repo if a similar component repo exists
|
|
{% if job is defined and job.component is defined %}
|
|
if [ -f "/etc/yum.repos.d/{{ job.component }}-component.repo" ] && sudo cat /etc/yum.repos.d/{{ job.component }}-component.repo | grep 'enabled=1'; then
|
|
dnf config-manager --disable delorean-component-{{ job.component }};
|
|
fi
|
|
{% endif %}
|
|
sudo rm -rf /etc/yum.repos.d/*.rpmsave;
|
|
sudo dnf repolist;
|
|
sudo dnf module list;
|
|
sudo dnf module disable container-tools:rhel8 -y;
|
|
sudo dnf module enable container-tools:3.0 -y;
|
|
sudo dnf clean metadata
|
|
{% if repo_setup_run_update|default(true)|bool %}
|
|
sudo dnf update -y
|
|
{% endif %}
|
|
undercloud_rpm_dependencies: >-
|
|
python3-tripleoclient
|
|
ceph-ansible
|
|
tripleo-operator-ansible
|
|
# Setting base_image_url and base_image_path to overwrite DIB_LOCAL_IMAGE in
|
|
# the diskimage-builder
|
|
## was https://images.rdoproject.org/base/centos7/CentOS-7-x86_64-GenericCloud-1901.qcow2 - 8 doesn't exit yet
|
|
base_image_url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20200113.0.x86_64.qcow2
|
|
base_image_path: "{{ ansible_user_dir }}/CentOS-Stream-GenericCloud-8-20200113.0.x86_64.qcow2"
|
|
|
|
# baseos settings
|
|
baseos_undercloud_image_url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20200113.0.x86_64.qcow2
|
|
baseos_image: centos
|
|
baseos_image_type: qcow2
|
|
baseos_md5sum: "3e365183c0777b8b5370fef7e1f5419a CentOS-Stream-GenericCloud-8-20200113.0.x86_64.qcow2"
|