tripleo-ci/roles/tripleo-repos
Sorin Sbarnea bf8a44a65c Fix tripleo-repos cross-platform installation
In order to make this role work with pure/clean images and also with
altered images like the ones provided by infra we need to detect
which virtualenv executable is available.

On clean fedora28 systems virtualenv is installed by python3-virtualend
package and provideds virtualenv-3 command.

On infra images, virtualenv is installed manually and disabled as rpm
and we do no thave an virtualenv-3 executable. Still, we can expect
to have a working virtualenv on.

On CentOS-7, there is no python-pip package, its correct name is
python2-pip.

Found the bug on another build:
http://logs.openstack.org/23/636923/20/check/tripleo-ci-molecule/c4542a5/job-output.txt.gz#_2019-03-21_19_17_35_349130

Change-Id: I7e0ee242956bcd451a2b2b6c2ab6daef978ef016
Related-Bug: https://bugs.launchpad.net/tripleo/+bug/1821575
2019-04-03 15:04:10 +00:00
..
defaults Fix tripleo-repos cross-platform installation 2019-04-03 15:04:10 +00:00
handlers Role to install setup repos using tripleo-repos 2018-11-05 10:01:10 -07:00
meta Role to install setup repos using tripleo-repos 2018-11-05 10:01:10 -07:00
tasks Fix tripleo-repos cross-platform installation 2019-04-03 15:04:10 +00:00
tests Role to install setup repos using tripleo-repos 2018-11-05 10:01:10 -07:00
vars Role to install setup repos using tripleo-repos 2018-11-05 10:01:10 -07:00
README.rst Role to install setup repos using tripleo-repos 2018-11-05 10:01:10 -07:00

README.rst

tripleo-repos

A role to install and run tripleo-repos to setup the CentOS and RDO yum repositories.

Role Variables

Variables used for chrony
Name Default Value Description
tripleo_repos_repository git+https://git.openstack.org/openstack/tripleo-repos Git repository to pip install tripleo-repos from
workspace ansible_user_dir Workspace directory to put the venv into
centos_mirror_host http://mirror.centos.org Mirror host for CentOS repositories
rdo_mirror_host https://trunk.rdoproject.org Mirror host for RDO repositories

Requirements

  • ansible >= 2.4
  • python >= 2.6

Dependencies

None

Example Playbooks

- hosts: localhost
  become: true
  roles:
    - tripleo-repos

License

Apache 2.0