Configuration files for kayobe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kayobe-env 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright (c) 2017 StackHPC Ltd.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. # not use this file except in compliance with the License. You may obtain
  5. # a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. KAYOBE_CONFIG_ROOT=$(dirname $(realpath ${BASH_SOURCE[0]:-${(%):-%x}}))
  15. echo "Using Kayobe config from $KAYOBE_CONFIG_ROOT"
  16. export KAYOBE_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kayobe
  17. export KOLLA_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kolla
  18. # NOTE: These paths can be modified depending on the local environment.
  19. # These defaults are set based on the following directory structure:
  20. #
  21. # ${base_path}/
  22. # src/
  23. # kayobe/
  24. # kayobe-config/
  25. # kolla-ansible/
  26. # venvs/
  27. # kayobe/
  28. # kolla-ansible/
  29. base_path=$(realpath $KAYOBE_CONFIG_ROOT/../../)
  30. export KOLLA_SOURCE_PATH=${KOLLA_SOURCE_PATH:-${base_path}/src/kolla-ansible}
  31. export KOLLA_VENV_PATH=${KOLLA_VENV_PATH:-${base_path}/venvs/kolla-ansible}