Adds CentOS 7 support

Fix circular python issues, same fix in Keystone and Barbican

Change-Id: I77e60ed42ab43e3f5984b8a52dc5898325df1c8e
This commit is contained in:
Aaron Mehar 2017-11-23 12:53:55 +00:00
parent b5b45c09d4
commit 2701e37f78
4 changed files with 44 additions and 0 deletions

View File

@ -10,6 +10,9 @@ galaxy_info:
- name: Ubuntu
versions:
- xenial
- name: EL
versions:
- 7
galaxy_tags:
- cloud
- openstack

View File

@ -113,6 +113,14 @@
- Restart trove taskmanager service
- Restart Apache
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ trove_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- trove_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ trove_bin | dirname }}

31
vars/redhat.yml Normal file
View File

@ -0,0 +1,31 @@
---
# Copyright 2017
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# (c) 2016 Donovan Francesco <donovan.francesco@is.co.za>
# (c) 2016 Paul Stevens <paul.stevens@is.co.za>
cache_timeout: 600
trove_distro_packages:
- gcc
- gcc-c++
- git
- httpd
- httpd-tools
- libxslt-devel
- mariadb
- mod_wsgi
- python-devel
- python-pip
- qemu-img

View File

@ -19,7 +19,9 @@
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-ubuntu-xenial
- openstack-ansible-functional-centos-7
gate:
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-ubuntu-xenial
- openstack-ansible-functional-centos-7