Add CentOS 7 deployment support

Remove python from path first to avoid circular issues

Change-Id: I5cf629f1c0e19c9359b7e29f3d65500f6fe87a77
This commit is contained in:
Aaron Mehar 2017-11-20 16:57:07 +00:00
parent 3101c7f4c9
commit 4bfcb2c662
4 changed files with 39 additions and 0 deletions

View File

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

View File

@ -99,6 +99,14 @@
when: barbican_get_venv | failed or barbican_get_venv | skipped
notify: Restart barbican services
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ barbican_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- barbican_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ barbican_bin | dirname }}

26
vars/redhat.yml Normal file
View File

@ -0,0 +1,26 @@
# Copyright 2016
#
# 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.
barbican_distro_packages:
- gcc
- gcc-c++
- gettext
- git
- httpd
- httpd-tools
- libffi-devel
- mod_wsgi
- openssl-devel
- postgresql-libs
- python-devel

View File

@ -18,8 +18,10 @@
check:
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-ubuntu-xenial
gate:
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-ubuntu-xenial