Add centos7 support for apply-test.sh

Change-Id: I10da00d7e4e8dcbad5c095cbeee2bc8f4c389bb6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-07-20 14:28:47 -04:00
parent 6dfab80fac
commit 55f6e468a1
2 changed files with 3 additions and 0 deletions

View File

@ -785,6 +785,7 @@ node 'openstackid-dev.openstack.org' {
}
# Node-OS: centos6
# Node-OS: centos7
# Node-OS: precise
# Node-OS: trusty
# This is not meant to be an actual node that connects to the master.

View File

@ -74,6 +74,8 @@ mv applytest/prep00 applytest/head # These are the top-level variables defined
if [[ `lsb_release -i -s` == 'CentOS' ]]; then
if [[ `lsb_release -r -s` =~ '6' ]]; then
CODENAME='centos6'
elif [[ `lsb_release -r -s` =~ '7' ]]; then
CODENAME='centos7'
fi
elif [[ `lsb_release -i -s` == 'Ubuntu' ]]; then
CODENAME=`lsb_release -c -s`