summaryrefslogtreecommitdiffstats
path: root/xci/config/user-vars
blob: 951688af44f707231a9d224b7313b6120769ae17 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#-------------------------------------------------------------------------------
# Set Deployment Flavor
#-------------------------------------------------------------------------------
# OPNFV XCI currently supports 4 different types of flavors:
#   - all in one (aio): 1 opnfv VM which acts as controller and compute node
#   - mini: 3 VMs, 1 opnfv VM deployment host, 1 controller, and 1 compute nodes
#   - noha: 4 VMs, 1 opnfv VM deployment host, 1 controller, and 2 compute nodes
#   - ha: 6 VMs, 1 opnfv VM deployment host, 3 controllers, and 2 compute nodes
#
# Apart from having different number of nodes, CPU, RAM, and disk allocations
# also differ from each other. Please take a look at the env-vars files for
# each of these flavors.
#
# Examples:
#   export XCI_FLAVOR="aio"
# or
#   export XCI_FLAVOR="mini"
# or
#   export XCI_FLAVOR="noha"
# or
#   export XCI_FLAVOR="ha"
#-------------------------------------------------------------------------------
export XCI_FLAVOR=${XCI_FLAVOR:-mini}
export XCI_DISTRO=${XCI_DISTRO:-$(source /etc/os-release &>/dev/null || source /usr/lib/os-release &>/dev/null; ID=${ID%%-*}; echo ${ID,,})}
export XCI_CEPH_ENABLED=${XCI_CEPH_ENABLED:-false}

#-------------------------------------------------------------------------------
# Set INSTALLER
#-------------------------------------------------------------------------------
# Currently, there are two kinds of installers in XCI: osa and kubespray
# Examples:
#    export INSTALLER_TYPE="osa"
# or
#    export INSTALLER_TYPE="kubespray"
export INSTALLER_TYPE=${INSTALLER_TYPE:-osa}

#-------------------------------------------------------------------------------
# Set DEPLOYMENT
#-------------------------------------------------------------------------------
# Currently, there is a single infra deployment method: bifrost
# Examples:
#    export INFRA_DEPLOYMENT="bifrost"
export INFRA_DEPLOYMENT=${INFRA_DEPLOYMENT:-bifrost}


#-------------------------------------------------------------------------------
# Configure some other stuff
#-------------------------------------------------------------------------------
# Set the verbosity for ansible
#
# Examples:
#   XCI_ANSIBLE_PARAMS="-v -e foo=bar"
export XCI_ANSIBLE_PARAMS=${XCI_ANSIBLE_PARAMS:-""}
export RUN_TEMPEST=${RUN_TEMPEST:-false}
export CORE_OPENSTACK_INSTALL=${CORE_OPENSTACK_INSTALL:-false}
export BIFROST_CREATE_IMAGE_VIA_DIB=${BIFROST_CREATE_IMAGE_VIA_DIB:-true}
# Set this to to true to force XCI to re-create the target OS images
export CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false}