Fix tripleo_repos to handle components

For centos8, we have componentized the openstack bits in RDO so we need
to fetch tripleo-repos from the tripleo component. This change will
properly identify the expected repo for tripleo-repos when not
installed.

Change-Id: I6ed72dd9166345f37191fce393488ae8f26a00b0
This commit is contained in:
Alex Schultz 2020-03-31 13:21:53 -06:00
parent 37e7b71bcc
commit 706a9a73e0
1 changed files with 2 additions and 1 deletions

View File

@ -2,10 +2,11 @@
- name: Build distro string
set_fact:
_tripleo_repos_distro: "{{ (ansible_facts.distribution == 'RedHat') | ternary('rhel', 'centos') }}{{ ansible_facts.distribution_major_version }}"
_tripleo_repos_component: "{{ (ansible_facts.distribution_major_version|int >= 8) | ternary('component/tripleo/', '') }}"
- name: Build RDO repo url
set_fact:
_tripleo_repos_repo_url: "{{ tripleo_repos_repo_base }}/{{ _tripleo_repos_distro }}-{{ tripleo_repos_branch }}/current/"
_tripleo_repos_repo_url: "{{ tripleo_repos_repo_base }}/{{ _tripleo_repos_distro }}-{{ tripleo_repos_branch }}/{{ _tripleo_repos_component }}/current/"
- name: Find available tripleo_repos rpm
block: