dbdf70d97bdf4c609a426bff69b8ca95f867d9f7
[apex.git] / apex / common / constants.py
1 ##############################################################################
2 # Copyright (c) 2016 Tim Rozet (trozet@redhat.com) and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import os
11
12 ADMIN_NETWORK = 'admin'
13 TENANT_NETWORK = 'tenant'
14 EXTERNAL_NETWORK = 'external'
15 STORAGE_NETWORK = 'storage'
16 API_NETWORK = 'api'
17 CONTROLLER = 'controller'
18 COMPUTE = 'compute'
19 ANSIBLE_PATH = 'ansible/playbooks'
20 OPNFV_NETWORK_TYPES = [ADMIN_NETWORK, TENANT_NETWORK, EXTERNAL_NETWORK,
21                        STORAGE_NETWORK, API_NETWORK]
22 DNS_SERVERS = ["8.8.8.8", "8.8.4.4"]
23 NTP_SERVER = ["pool.ntp.org"]
24 COMPUTE = 'compute'
25 CONTROLLER = 'controller'
26 ROLES = [COMPUTE, CONTROLLER]
27 DOMAIN_NAME = 'localdomain.com'
28 COMPUTE_PRE = "OS::TripleO::ComputeExtraConfigPre"
29 CONTROLLER_PRE = "OS::TripleO::ControllerExtraConfigPre"
30 PRE_CONFIG_DIR = "/usr/share/openstack-tripleo-heat-templates/puppet/" \
31                  "extraconfig/pre_deploy/"
32 DEFAULT_ROOT_DEV = 'sda'
33 LIBVIRT_VOLUME_PATH = '/var/lib/libvirt/images'
34
35 VIRT_UPLOAD = '--upload'
36 VIRT_INSTALL = '--install'
37 VIRT_RUN_CMD = '--run-command'
38 VIRT_PW = '--root-password'
39
40 THT_DIR = '/usr/share/openstack-tripleo-heat-templates'
41 THT_ENV_DIR = os.path.join(THT_DIR, 'environments')
42 THT_DOCKER_ENV_DIR = os.path.join(THT_ENV_DIR, 'services')
43
44 DEFAULT_OS_VERSION = 'master'
45 DEFAULT_ODL_VERSION = 'oxygen'
46 VALID_ODL_VERSIONS = ['carbon', 'nitrogen', 'oxygen', 'master']
47 PUPPET_ODL_URL = 'https://git.opendaylight.org/gerrit/integration/packaging' \
48                  '/puppet-opendaylight'
49 DEBUG_OVERCLOUD_PW = 'opnfvapex'
50 NET_ENV_FILE = 'network-environment.yaml'
51 DEPLOY_TIMEOUT = 120
52 RDO_TAG = 'current-tripleo'
53 UPSTREAM_RDO = "https://images.rdoproject.org/master/rdo_trunk/{}/".format(
54     RDO_TAG)
55 OPENSTACK_GERRIT = 'https://review.openstack.org'
56
57 DOCKER_TAG = RDO_TAG
58 # Maps regular service files to docker versions
59 # None value means mapping is same as key
60 VALID_DOCKER_SERVICES = {
61     'neutron-opendaylight.yaml': None,
62     'neutron-opendaylight-dpdk.yaml': None,
63     'neutron-opendaylight-sriov.yaml': None,
64     'neutron-bgpvpn-opendaylight.yaml': None,
65     'neutron-sfc-opendaylight.yaml': None,
66     'neutron-ml2-ovn.yaml': 'neutron-ovn-ha.yaml'
67 }
68 DOCKERHUB_OOO = 'https://registry.hub.docker.com/v2/repositories' \
69                 '/tripleomaster/'
70 DOCKERHUB_AARCH64 = 'https://registry.hub.docker.com/v2/repositories' \
71                     '/armbandapex/'
72 KUBESPRAY_URL = 'https://github.com/kubernetes-incubator/kubespray.git'
73 OPNFV_ARTIFACTS = 'http://storage.googleapis.com/artifacts.opnfv.org'
74 CUSTOM_OVS = '{}/apex/random/openvswitch-2.9.0-9.el7fdn.x86_64.' \
75              'rpm'.format(OPNFV_ARTIFACTS)
76
77 OVS_URL = "http://openvswitch.org/releases/openvswitch-2.9.2.tar.gz"
78 QUAGGA_URL = "{}/sdnvpn/quagga/quagga-4.tar.gz".format(OPNFV_ARTIFACTS)
79 CALIPSO_INSTALLER_URL = "https://raw.githubusercontent.com/opnfv/calipso" \
80                         "/master/app/install/calipso-installer.py"