# lib/rally # Functions to control the configuration and operation of the **Rally** # Dependencies: # # - ``functions`` file # - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined # ``stack.sh`` calls the entry points in this order: # # - install_rally # - configure_rally # - init_rally # Save trace setting XTRACE=$(set +o | grep xtrace) set +o xtrace # Defaults # -------- # Set up default directories DIR=$(dirname ${BASH_SOURCE[0]}) RALLY_DIR=$(readlink -m $DIR/../..) RALLY_CONF_DIR=${RALLY_CONF_DIR:-/etc/rally} RALLY_CONF_FILE=rally.conf # Debug mode RALLY_DEBUG=${RALLY_DEBUG:-False} # Create deployment RALLY_ADD_DEPLOYMENT=${RALLY_ADD_DEPLOYMENT:-"True"} RALLY_ADD_DEPLOYMENT=$(trueorfalse True $RALLY_ADD_DEPLOYMENT) # Integration with OSprofiler OSPROFILER_HMAC_KEYS=${OSPROFILER_HMAC_KEYS:-""} OSPROFILER_CONNECTION_STRING=${OSPROFILER_CONNECTION_STRING:-""} # Functions # --------- # Creates a configuration file for the current deployment # Uses the following variables: # # - ``ADMIN_PASSWORD``, ``REGION_NAME`` # ``KEYSTONE_SERVICE_URI`` # ``OSPROFILER_HMAC_KEYS`` - optional, for integration with osprofiler # ``OSPROFILER_CONNECTION_STRING`` - optional, if this is set together with # OSPROFILER_HMAC_KEYS rally html report will use osprofiler api to # generate html report for each trace and embed it as iframe to our # native html report # ``RALLY_OSPROFILER_CHART`` - optional, a path to store osprofiler's reports # # _create_deployment_config filename function _create_deployment_config() { cat >$1 <>$1 <>$1 <>$1 <