From 949110d1147b6792143cfe5fc871899c8d8a3f40 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Tue, 17 Jun 2014 14:45:00 +0200 Subject: [PATCH] Add path configuration file This file is used by all scripts to find the directories for the files they read or write. They find this file as "$TOP_DIR/config/paths". Partial-Bug: 1312764 Implements: blueprint openstack-training-labs Change-Id: Ia63b8489c66acf174f3b3850d24fd7c6108f59b4 --- labs/config/paths | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 labs/config/paths diff --git a/labs/config/paths b/labs/config/paths new file mode 100644 index 00000000..58d0285d --- /dev/null +++ b/labs/config/paths @@ -0,0 +1,33 @@ +# This file is used by all scripts to find the directories for the files they +# read or write. They find this file as "$TOP_DIR/config/paths". + +# Configuration files +: ${CONFIG_DIR:=$TOP_DIR/config} + +# Installation ISO images, basedisk images, exported VM cluster images, etc. +# +# TODO(rluethi): merge these directories in the code, the option to have them +# in separate directories doesn't seem very useful +: ${DISK_DIR:=$TOP_DIR/img} +: ${IMG_DIR:=$TOP_DIR/img} +: ${ISO_DIR:=$TOP_DIR/img} + +# Code libraries, templates, preseed/kickstart files +: ${LIB_DIR:=$TOP_DIR/lib} + +# Log files +: ${LOG_DIR:=$TOP_DIR/log} + +# Status files (progress indicator for running scripts) +: ${STATUS_DIR:=$LOG_DIR/status} + +# Scripts that run within the basedisk and node VMs +: ${SCRIPTS_DIR:=$TOP_DIR/scripts} + +# Directory shared with VM guest +: ${SHARE_DIR:=$TOP_DIR} + +# Autostart directory; files placed here are executed within the VM +: ${AUTOSTART_DIR:=$SHARE_DIR/autostart} + +# vim: set ai ts=4 sw=4 et ft=sh: