Browse Source

Update kayobe-env for new recommended directory structure

Mark Goddard 1 year ago
parent
commit
dd942ed498
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      kayobe-env

+ 15
- 0
kayobe-env View File

@@ -17,3 +17,18 @@ echo "Using Kayobe config from $KAYOBE_CONFIG_ROOT"
17 17
 
18 18
 export KAYOBE_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kayobe
19 19
 export KOLLA_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kolla
20
+
21
+# NOTE: These paths can be modified depending on the local environment.
22
+# These defaults are set based on the following directory structure:
23
+#
24
+# ${base_path}/
25
+#   src/
26
+#     kayobe/
27
+#     kayobe-config/
28
+#     kolla-ansible/
29
+#   venvs/
30
+#     kayobe/
31
+#     kolla-ansible/
32
+base_path=$(realpath $KAYOBE_CONFIG_ROOT/../../)
33
+export KOLLA_SOURCE_PATH=${KOLLA_SOURCE_PATH:-${base_path}/src/kolla-ansible}
34
+export KOLLA_VENV_PATH=${KOLLA_VENV_PATH:-${base_path}/venvs/kolla-ansible}

Loading…
Cancel
Save