summaryrefslogtreecommitdiffstats
path: root/deploy/conf/cluster.conf
blob: 9107eb8a948aa753b5ba8f145f2e41ffb49cd7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# trustry/centos7
export OS_VERSION=${OS_VERSION:-"trusty"}

# for Operating System
if [ $OS_VERSION = 'xenial' ]; then
    export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-16\.04'}
elif [ $OS_VERSION = 'trusty' ]; then
    export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-14\.04\.3.*'}
elif [ $OS_VERSION = 'redhat7' ]; then
    export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)rhel-server-7\.2.*'}
else
    export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*15.*'}
fi

# liberty/kilo/juno
export OPENSTACK_VERSION=${OPENSTACK_VERSION:-"liberty"}

# don't touch this
export ADAPTER_TARGET_SYSTEM_PATTERN="^openstack$"

if [ $OPENSTACK_VERSION = 'mitaka_xenial' ]; then
    export REPO_NAME="xenial-mitaka-ppa"
elif [ $OPENSTACK_VERSION = 'newton_xenial' ]; then
    export REPO_NAME="xenial-newton-ppa"
elif [ $OPENSTACK_VERSION = 'osp9' ]; then
    unset REPO_NAME
else
    export REPO_NAME="$OS_VERSION-$OPENSTACK_VERSION-ppa"
fi

export ADAPTER_NAME="openstack_$OPENSTACK_VERSION"
export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes-$OPENSTACK_VERSION"

export DEFAULT_ROLES=""
export VIP="10.1.0.222"