Alternative reclass module path
Change-Id: I418a6c3f150101b94fa7d7da9accc7d4f279e451
diff --git a/bootstrap.sh b/bootstrap.sh
index 90eebaf..aa2f5a8 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -250,6 +250,9 @@
IGNORE_CLASS_NOTFOUND="ignore_class_notfound: True"
fi
+ # to force alternative reclass module path
+ RECLASS_SOURCE_PATH=${RECLASS_SOURCE_PATH:-""}
+
[ ! -d /etc/salt/master.d ] && mkdir -p /etc/salt/master.d
cat <<-EOF > /etc/salt/master.d/master.conf
file_roots:
@@ -265,6 +268,7 @@
storage_type: yaml_fs
inventory_base_uri: ${RECLASS_ROOT}
${IGNORE_CLASS_NOTFOUND}
+ ${RECLASS_SOURCE_PATH}
ext_pillar:
- reclass: *reclass
master_tops:
@@ -280,6 +284,7 @@
output: yaml
inventory_base_uri: ${RECLASS_ROOT}
${IGNORE_CLASS_NOTFOUND}
+ ${RECLASS_SOURCE_PATH}
EOF
clone_reclass