"Fossies" - the Fresh Open Source Software Archive

Member "monasca-log-api-2.9.0/devstack/lib/config.sh" (1 Apr 2019, 4432 Bytes) of package /linux/misc/openstack/monasca-log-api-2.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.sh": 2.7.0_vs_2.9.0.

    1 #!/bin/bash
    2 
    3 # Copyright 2017 FUJITSU LIMITED
    4 #
    5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
    6 # not use this file except in compliance with the License. You may obtain
    7 # a copy of the License at
    8 #
    9 #      http://www.apache.org/licenses/LICENSE-2.0
   10 #
   11 # Unless required by applicable law or agreed to in writing, software
   12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   14 # License for the specific language governing permissions and limitations
   15 # under the License.
   16 
   17 # Non configurable settings or settings derived from another settings
   18 
   19 _XTRACE_LOG_API_CONFIG=$(set +o | grep xtrace)
   20 set +o xtrace
   21 
   22 if [[ ${USE_VENV} = True ]]; then
   23     PROJECT_VENV["monasca-log-api"]=${MONASCA_LOG_API_DIR}.venv
   24     MONASCA_LOG_API_BIN_DIR=${PROJECT_VENV["monasca-log-api"]}/bin
   25 else
   26     MONASCA_LOG_API_BIN_DIR=$(get_python_exec_prefix)
   27 fi
   28 
   29 MONASCA_LOG_API_WSGI=$MONASCA_LOG_API_BIN_DIR/monasca-log-api-wsgi
   30 MONASCA_LOG_API_DEPLOY=`determine_log_api_deploy_mode`
   31 if is_service_enabled tls-proxy; then
   32     MONASCA_LOG_API_SERVICE_PROTOCOL="https"
   33 fi
   34 if [ "$MONASCA_LOG_API_USE_MOD_WSGI" == "True" ]; then
   35     MONASCA_LOG_API_BASE_URI=${MONASCA_LOG_API_SERVICE_PROTOCOL}://${MONASCA_LOG_API_SERVICE_HOST}/logs
   36 else
   37     MONASCA_LOG_API_BASE_URI=${MONASCA_LOG_API_SERVICE_PROTOCOL}://${MONASCA_LOG_API_SERVICE_HOST}:${MONASCA_LOG_API_SERVICE_PORT}
   38 fi
   39 MONASCA_LOG_API_URI_V2=${MONASCA_LOG_API_BASE_URI}/v2.0
   40 MONASCA_LOG_API_URI_V3=${MONASCA_LOG_API_BASE_URI}/v3.0
   41 
   42 MONASCA_LOG_API_CONF_DIR=${MONASCA_LOG_API_CONF_DIR:-/etc/monasca}
   43 MONASCA_LOG_API_LOG_DIR=${MONASCA_LOG_API_LOG_DIR:-/var/log/monasca}
   44 MONASCA_LOG_API_CACHE_DIR=${MONASCA_LOG_API_CACHE_DIR:-/var/cache/monasca-log-api}
   45 MONASCA_LOG_API_WSGI_DIR=${MONASCA_LOG_API_WSGI_DIR:-/var/www/monasca-log-api}
   46 
   47 MONASCA_LOG_API_CONF=${MONASCA_LOG_API_CONF:-$MONASCA_LOG_API_CONF_DIR/monasca-log-api.conf}
   48 MONASCA_LOG_API_PASTE=${MONASCA_LOG_API_PASTE:-$MONASCA_LOG_API_CONF_DIR/log-api-paste.ini}
   49 MONASCA_LOG_API_LOGGING_CONF=${MONASCA_LOG_API_LOGGING_CONF:-$MONASCA_LOG_API_CONF_DIR/log-api-logging.conf}
   50 MONASCA_LOG_API_UWSGI_CONF=${MONASCA_LOG_API_UWSGI_CONF:-$MONASCA_LOG_API_CONF_DIR/log-api-uwsgi.ini}
   51 
   52 MONASCA_LOG_API_USE_MOD_WSGI=${MONASCA_LOG_API_USE_MOD_WSGI:-$ENABLE_HTTPD_MOD_WSGI_SERVICES}
   53 
   54 # configuration bits of various services
   55 LOG_PERSISTER_DIR=$DEST/monasca-log-persister
   56 LOG_TRANSFORMER_DIR=$DEST/monasca-log-transformer
   57 LOG_METRICS_DIR=$DEST/monasca-log-metrics
   58 LOG_AGENT_DIR=$DEST/monasca-log-agent
   59 
   60 ELASTICSEARCH_DIR=$DEST/elasticsearch
   61 ELASTICSEARCH_CFG_DIR=$ELASTICSEARCH_DIR/config
   62 ELASTICSEARCH_LOG_DIR=$LOGDIR/elasticsearch
   63 ELASTICSEARCH_DATA_DIR=$DATA_DIR/elasticsearch
   64 
   65 KIBANA_DIR=$DEST/kibana
   66 KIBANA_CFG_DIR=$KIBANA_DIR/config
   67 
   68 LOGSTASH_DIR=$DEST/logstash
   69 
   70 PLUGIN_FILES=$MONASCA_LOG_API_DIR/devstack/files
   71 # configuration bits of various services
   72 
   73 # Files inside this directory will be visible in gates log
   74 GATE_CONFIGURATION_DIR=/etc/monasca-log-api
   75 
   76 # clone monasca-{common,statsd} directly from repo
   77 GITREPO["monasca-common"]=${MONASCA_COMMON_REPO}
   78 GITBRANCH["monasca-common"]=${MONASCA_COMMON_BRANCH}
   79 GITDIR["monasca-common"]=${MONASCA_COMMON_DIR}
   80 
   81 GITREPO["monasca-statsd"]=${MONASCA_STATSD_REPO}
   82 GITBRANCH["monasca-statsd"]=${MONASCA_STATSD_BRANCH}
   83 GITDIR["monasca-statsd"]=${MONASCA_STATSD_DIR}
   84 
   85 LIBS_FROM_GIT="${LIBS_FROM_GIT:-""},monasca-common,monasca-statsd"
   86 # clone monasca-{common,statsd} directly from repo
   87 
   88 # public facing bits
   89 MONASCA_LOG_API_SERVICE_HOST=${MONASCA_LOG_API_SERVICE_HOST:-${SERVICE_HOST}}
   90 MONASCA_LOG_API_SERVICE_PORT=${MONASCA_LOG_API_SERVICE_PORT:-5607}
   91 MONASCA_LOG_API_SERVICE_PORT_INT=${MONASCA_LOG_API_SERVICE_PORT:-15607}
   92 MONASCA_LOG_API_SERVICE_PROTOCOL=${MONASCA_LOG_API_SERVICE_PROTOCOL:-${SERVICE_PROTOCOL}}
   93 
   94 ES_SERVICE_BIND_HOST=${ES_SERVICE_BIND_HOST:-${SERVICE_HOST}}
   95 ES_SERVICE_BIND_PORT=${ES_SERVICE_BIND_PORT:-9200}
   96 ES_SERVICE_PUBLISH_HOST=${ES_SERVICE_PUBLISH_HOST:-${SERVICE_HOST}}
   97 ES_SERVICE_PUBLISH_PORT=${ES_SERVICE_PUBLISH_PORT:-9300}
   98 
   99 KIBANA_SERVICE_HOST=${KIBANA_SERVICE_HOST:-${SERVICE_HOST}}
  100 KIBANA_SERVICE_PORT=${KIBANA_SERVICE_PORT:-5601}
  101 KIBANA_SERVER_BASE_PATH=${KIBANA_SERVER_BASE_PATH:-"/dashboard/monitoring/logs_proxy"}
  102 
  103 KAFKA_SERVICE_HOST=${KAFKA_SERVICE_HOST:-${SERVICE_HOST}}
  104 KAFKA_SERVICE_PORT=${KAFKA_SERVICE_PORT:-9092}
  105 # public facing bits
  106 
  107 ${_XTRACE_LOG_API_CONFIG}