2015-03-25 14:12:24 -07:00
|
|
|
# settings for octavia devstack plugin
|
|
|
|
|
|
|
|
OCTAVIA=${OCTAVIA:-"octavia"}
|
|
|
|
OCTAVIA_DIR=${OCTAVIA_DIR:-"${DEST}/octavia"}
|
2017-03-13 13:22:10 +09:00
|
|
|
DISKIMAGE_BUILDER_REPO_URL=${DISKIMAGE_BUILDER_REPO_URL:-${GIT_BASE}/openstack/diskimage-builder.git}
|
|
|
|
DISKIMAGE_BUILDER_REPO_REF=${DISKIMAGE_BUILDER_REPO_REF:-master}
|
2016-03-21 14:57:52 +08:00
|
|
|
DISKIMAGE_BUILDER_DIR=$DEST/diskimage-builder
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_BIN_DIR=${OCTAVIA_BIN_DIR:-$(get_python_exec_prefix)}
|
|
|
|
OCTAVIA_CONF_DIR=${OCTAVIA_CONF_DIR:-"/etc/octavia"}
|
|
|
|
OCTAVIA_SSH_DIR=${OCTAVIA_SSH_DIR:-${OCTAVIA_CONF_DIR}/.ssh}
|
2015-02-27 14:45:54 -08:00
|
|
|
OCTAVIA_CERTS_DIR=${OCTAVIA_CERTS_DIR:-${OCTAVIA_CONF_DIR}/certs}
|
2018-04-10 09:35:11 -07:00
|
|
|
# This needs to be under /etc/dhcp for apparmor
|
|
|
|
# See https://storyboard.openstack.org/#!/story/1673269
|
|
|
|
OCTAVIA_DHCLIENT_DIR=${OCTAVIA_DHCLIENT_DIR:-"/etc/dhcp/octavia"}
|
2016-06-07 20:36:25 -05:00
|
|
|
OCTAVIA_DHCLIENT_CONF=${OCTAVIA_DHCLIENT_CONF:-${OCTAVIA_DHCLIENT_DIR}/dhclient.conf}
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_CONF=${OCTAVIA_CONF:-${OCTAVIA_CONF_DIR}/octavia.conf}
|
2018-10-11 16:22:55 -07:00
|
|
|
OCTAVIA_AUDIT_MAP=${OCTAVIA_AUDIT_MAP:-${OCTAVIA_CONF_DIR}/octavia_api_audit_map.conf}
|
2018-10-26 17:05:22 -07:00
|
|
|
OCTAVIA_RUN_DIR=${OCTAVIA_RUN_DIR:-"/var/run/octavia"}
|
2015-03-25 14:12:24 -07:00
|
|
|
|
2015-10-01 01:39:36 -05:00
|
|
|
OCTAVIA_AMPHORA_DRIVER=${OCTAVIA_AMPHORA_DRIVER:-"amphora_haproxy_rest_driver"}
|
|
|
|
OCTAVIA_NETWORK_DRIVER=${OCTAVIA_NETWORK_DRIVER:-"allowed_address_pairs_driver"}
|
|
|
|
OCTAVIA_COMPUTE_DRIVER=${OCTAVIA_COMPUTE_DRIVER:-"compute_nova_driver"}
|
2018-05-25 10:45:20 +07:00
|
|
|
OCTAVIA_VOLUME_DRIVER=${OCTAVIA_VOLUME_DRIVER:-"volume_noop_driver"}
|
2020-06-25 15:20:09 +02:00
|
|
|
OCTAVIA_IMAGE_DRIVER=${OCTAVIA_IMAGE_DRIVER:-"image_glance_driver"}
|
2015-10-01 01:39:36 -05:00
|
|
|
|
2016-09-01 23:03:50 -05:00
|
|
|
OCTAVIA_USERNAME=${OCTAVIA_ADMIN_USER:-"admin"}
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_PASSWORD=${OCTAVIA_PASSWORD:-${ADMIN_PASSWORD}}
|
2016-09-01 23:03:50 -05:00
|
|
|
OCTAVIA_PROJECT_NAME=${OCTAVIA_PROJECT_NAME:-$OCTAVIA_USERNAME}
|
|
|
|
OCTAVIA_USER_DOMAIN_NAME=${OCTAVIA_USER_DOMAIN_NAME:-"Default"}
|
|
|
|
OCTAVIA_PROJECT_DOMAIN_NAME=${OCTAVIA_PROJECT_DOMAIN_NAME:-"Default"}
|
2015-03-25 14:12:24 -07:00
|
|
|
|
2020-08-11 10:19:21 +02:00
|
|
|
OCTAVIA_PROTOCOL=${OCTAVIA_PROTOCOL:-$SERVICE_PROTOCOL}
|
2015-05-13 01:53:26 -05:00
|
|
|
OCTAVIA_PORT=${OCTAVIA_PORT:-"9876"}
|
2016-06-06 11:19:01 -04:00
|
|
|
OCTAVIA_HA_PORT=${OCTAVIA_HA_PORT:-"9875"}
|
2016-01-08 09:50:48 -06:00
|
|
|
OCTAVIA_HM_LISTEN_PORT=${OCTAVIA_HM_LISTEN_PORT:-"5555"}
|
2015-05-13 01:53:26 -05:00
|
|
|
|
2020-07-30 07:06:24 +00:00
|
|
|
OCTAVIA_ENABLE_AMPHORAV2_JOBBOARD=${OCTAVIA_ENABLE_AMPHORAV2_JOBBOARD:-False}
|
2020-06-25 16:23:47 +04:00
|
|
|
OCTAVIA_JOBBOARD_EXPIRATION_TIME=${OCTAVIA_JOBBOARD_EXPIRATION_TIME:-30}
|
2019-03-11 10:08:39 +00:00
|
|
|
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_MGMT_SUBNET=${OCTAVIA_MGMT_SUBNET:-"192.168.0.0/24"}
|
|
|
|
OCTAVIA_MGMT_SUBNET_START=${OCTAVIA_MGMT_SUBNET_START:-"192.168.0.2"}
|
|
|
|
OCTAVIA_MGMT_SUBNET_END=${OCTAVIA_MGMT_SUBNET_END:-"192.168.0.200"}
|
2019-06-13 03:10:47 -07:00
|
|
|
OCTAVIA_MGMT_SUBNET_IPV6=${OCTAVIA_MGMT_SUBNET_IPV6:-"fd00:0:0:42::/64"}
|
|
|
|
OCTAVIA_MGMT_SUBNET_IPV6_START=${OCTAVIA_MGMT_SUBNET_IPV6_START:-"fd00:0:0:42:0:0:0:2"}
|
|
|
|
OCTAVIA_MGMT_SUBNET_IPV6_END=${OCTAVIA_MGMT_SUBNET_IPV6_END:-"fd00:0:0:42:ffff:ffff:ffff:ffff"}
|
2015-03-25 14:12:24 -07:00
|
|
|
|
|
|
|
OCTAVIA_AMP_SSH_KEY_BITS=${OCTAVIA_SSH_KEY_BITS:-"2048"}
|
|
|
|
OCTAVIA_AMP_SSH_KEY_TYPE=${OCTAVIA_SSH_KEY_TYPE:-"rsa"}
|
|
|
|
OCTAVIA_AMP_SSH_KEY_PATH=${OCTAVIA_SSH_KEY_PATH:-${OCTAVIA_SSH_DIR}/octavia_ssh_key}
|
|
|
|
OCTAVIA_AMP_SSH_KEY_NAME=${OCTAVIA_AMP_SSH_KEY_NAME:-"octavia_ssh_key"}
|
|
|
|
|
2015-08-29 17:35:26 -07:00
|
|
|
OCTAVIA_AMP_FLAVOR_ID=${OCTAVIA_AMP_FLAVOR_ID:-"10"}
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_AMP_IMAGE_NAME=${OCTAVIA_AMP_IMAGE_NAME:-"amphora-x64-haproxy"}
|
|
|
|
OCTAVIA_AMP_IMAGE_FILE=${OCTAVIA_AMP_IMAGE_FILE:-${OCTAVIA_DIR}/diskimage-create/${OCTAVIA_AMP_IMAGE_NAME}.qcow2}
|
2016-02-25 15:26:57 +01:00
|
|
|
OCTAVIA_AMP_IMAGE_TAG="amphora"
|
2015-03-25 14:12:24 -07:00
|
|
|
|
2016-10-15 04:50:53 +09:00
|
|
|
OCTAVIA_AMP_CONN_TIMEOUT=${OCTAVIA_AMP_CONN_TIMEOUT:-"10"}
|
|
|
|
OCTAVIA_AMP_READ_TIMEOUT=${OCTAVIA_AMP_READ_TIMEOUT:-"120"}
|
|
|
|
|
2018-12-12 15:55:35 -08:00
|
|
|
OCTAVIA_AMP_LOG_ADMIN_PORT=${OCTAVIA_AMP_LOG_ADMIN_PORT:="10514"}
|
|
|
|
OCTAVIA_AMP_LOG_TENANT_PORT=${OCTAVIA_AMP_LOG_TENANT_PORT:="20514"}
|
|
|
|
|
2015-07-14 20:12:42 -05:00
|
|
|
OCTAVIA_HEALTH_KEY=${OCTAVIA_HEALTH_KEY:-"insecure"}
|
|
|
|
|
2018-07-10 15:38:44 +02:00
|
|
|
OCTAVIA_LB_TOPOLOGY=${OCTAVIA_LB_TOPOLOGY:-"SINGLE"}
|
|
|
|
|
2016-06-27 12:13:28 +03:00
|
|
|
OCTAVIA_AMP_EXPIRY_AGE=${OCTAVIA_AMP_EXPIRY_AGE:-"3600"}
|
|
|
|
OCTAVIA_LB_EXPIRY_AGE=${OCTAVIA_LB_EXPIRY_AGE:-"3600"}
|
|
|
|
|
2017-03-03 05:52:34 +00:00
|
|
|
OCTAVIA_USE_MOD_WSGI=${OCTAVIA_USE_MOD_WSGI:-True}
|
2015-03-25 14:12:24 -07:00
|
|
|
OCTAVIA_API_BINARY=${OCTAVIA_API_BINARY:-${OCTAVIA_BIN_DIR}/octavia-api}
|
|
|
|
OCTAVIA_CONSUMER_BINARY=${OCTAVIA_CONSUMER_BINARY:-${OCTAVIA_BIN_DIR}/octavia-worker}
|
2015-05-14 20:02:46 +00:00
|
|
|
OCTAVIA_HOUSEKEEPER_BINARY=${OCTAVIA_HOUSEKEEPER_BINARY:-${OCTAVIA_BIN_DIR}/octavia-housekeeping}
|
|
|
|
OCTAVIA_HEALTHMANAGER_BINARY=${OCTAVIA_HEALTHMANAGER_BINARY:-${OCTAVIA_BIN_DIR}/octavia-health-manager}
|
2018-10-26 17:05:22 -07:00
|
|
|
OCTAVIA_DRIVER_AGENT_BINARY=${OCTAVIA_DRIVER_AGENT_BINARY:-${OCTAVIA_BIN_DIR}/octavia-driver-agent}
|
2015-03-25 14:12:24 -07:00
|
|
|
|
|
|
|
OCTAVIA_API_ARGS=${OCTAVIA_API_ARGS:-" --config-file $OCTAVIA_CONF"}
|
|
|
|
OCTAVIA_CONSUMER_ARGS=${OCTAVIA_CONSUMER_ARGS:-" --config-file $OCTAVIA_CONF"}
|
|
|
|
OCTAVIA_HOUSEKEEPER_ARGS=${OCTAVIA_HOUSEKEEPER_ARGS:-" --config-file $OCTAVIA_CONF"}
|
|
|
|
OCTAVIA_HEALTHMANAGER_ARGS=${OCTAVIA_HEALTHMANAGER_ARGS:-" --config-file $OCTAVIA_CONF"}
|
2018-10-26 17:05:22 -07:00
|
|
|
OCTAVIA_DRIVER_AGENT_ARGS=${OCTAVIA_DRIVER_AGENT_ARGS:-" --config-file $OCTAVIA_CONF"}
|
2015-03-25 14:12:24 -07:00
|
|
|
|
|
|
|
OCTAVIA_API="o-api"
|
|
|
|
OCTAVIA_CONSUMER="o-cw"
|
|
|
|
OCTAVIA_HOUSEKEEPER="o-hk"
|
|
|
|
OCTAVIA_HEALTHMANAGER="o-hm"
|
2015-06-26 15:14:38 -07:00
|
|
|
OCTAVIA_SERVICE="octavia"
|
2016-06-06 11:19:01 -04:00
|
|
|
OCTAVIA_API_HAPROXY="o-api-ha"
|
2018-10-26 17:05:22 -07:00
|
|
|
OCTAVIA_DRIVER_AGENT="o-da"
|
2016-06-06 11:19:01 -04:00
|
|
|
|
2017-04-27 19:43:48 +09:00
|
|
|
# Client settings
|
|
|
|
GITREPO["python-octaviaclient"]=${OCTAVIACLIENT_REPO:-${GIT_BASE}/openstack/python-octaviaclient.git}
|
|
|
|
GITBRANCH["python-octaviaclient"]=${OCTAVIACLIENT_BRANCH:-master}
|
|
|
|
GITDIR["python-octaviaclient"]=$DEST/python-octaviaclient
|
|
|
|
|
2018-10-26 17:05:22 -07:00
|
|
|
# Library settings
|
|
|
|
GITREPO["octavia-lib"]=${OCTAVIA_LIB_REPO:-${GIT_BASE}/openstack/octavia-lib.git}
|
|
|
|
GITBRANCH["octavia-lib"]=${OCTAVIA_LIB_BRANCH:-master}
|
|
|
|
GITDIR["octavia-lib"]=$DEST/octavia-lib
|
|
|
|
|
2018-02-14 13:26:25 +01:00
|
|
|
NEUTRON_ANY=${NEUTRON_ANY:-"q-svc neutron-api"}
|
2016-06-02 16:08:23 -04:00
|
|
|
|
|
|
|
# HA-deployment related settings
|
|
|
|
OCTAVIA_USE_PREGENERATED_SSH_KEY=${OCTAVIA_USE_PREGENERATED_SSH_KEY:-"False"}
|
|
|
|
OCTAVIA_PREGENERATED_SSH_KEY_PATH=${OCTAVIA_PREGENERATED_SSH_KEY_PATH:-"${OCTAVIA_DIR}/devstack/pregenerated/ssh-keys/octavia_ssh_key"}
|
|
|
|
|
|
|
|
OCTAVIA_USE_PREGENERATED_CERTS=${OCTAVIA_USE_PREGENERATED_CERTS:-"False"}
|
|
|
|
OCTAVIA_PREGENERATED_CERTS_DIR=${OCTAVIA_PREGENERATED_CERTS_DIR:-"${OCTAVIA_DIR}/devstack/pregenerated/certs"}
|
|
|
|
OCTAVIA_NODE=${OCTAVIA_NODE:-"standalone"}
|
|
|
|
OCTAVIA_CONTROLLER_IP_PORT_LIST=${OCTAVIA_CONTROLLER_IP_PORT_LIST:-"auto"}
|
2016-10-14 13:06:06 +02:00
|
|
|
OCTAVIA_MGMT_PORT_IP=${OCTAVIA_MGMT_PORT_IP:-"auto"}
|
2016-12-12 16:45:36 -08:00
|
|
|
|
2018-10-23 18:50:08 +11:00
|
|
|
OCTAVIA_DIB_TRACING=${OCTAVIA_DIB_TRACING:-"1"}
|
2017-06-28 14:08:13 -07:00
|
|
|
|
|
|
|
OCTAVIA_SERVICE_TYPE="load-balancer"
|
|
|
|
OCTAVIA_UWSGI_APP=${OCTAVIA_UWSGI_APP:-${OCTAVIA_BIN_DIR}/octavia-wsgi}
|
|
|
|
OCTAVIA_UWSGI_CONF=${OCTAVIA_UWSGI_CONF:-${OCTAVIA_CONF_DIR}/octavia-uwsgi.ini}
|