Adds ability to deploy from upstream openstack
[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
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
43 DEFAULT_OS_VERSION = 'ocata'
44 DEFAULT_ODL_VERSION = 'carbon'
45 VALID_ODL_VERSIONS = ['carbon', 'nitrogen', 'oxygen', 'master']
46 PUPPET_ODL_URL = 'https://git.opendaylight.org/gerrit/integration/packaging' \
47                  '/puppet-opendaylight'
48 DEBUG_OVERCLOUD_PW = 'opnfvapex'
49 NET_ENV_FILE = 'network-environment.yaml'
50 DEPLOY_TIMEOUT = 90
51 UPSTREAM_RDO = 'https://images.rdoproject.org/ocata/delorean/current-tripleo/'
52 OPENSTACK_GERRIT = 'https://review.openstack.org'