Merge pull request #8 from salt-formulas/fix-ignore-missing-class
fix-ignore-missing-class
diff --git a/bootstrap.sh b/bootstrap.sh
index b07ab53..eef8c4f 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -225,6 +225,10 @@
echo "Configuring salt-master ..."
+ if [[ $RECLASS_IGNORE_CLASS_NOTFOUND =~ ^(True|true|1|yes)$ ]]; then
+ IGNORE_CLASS_NOTFOUND="ignore_class_notfound: True"
+ fi
+
[ ! -d /etc/salt/master.d ] && mkdir -p /etc/salt/master.d
cat <<-EOF > /etc/salt/master.d/master.conf
file_roots:
@@ -239,7 +243,7 @@
reclass: &reclass
storage_type: yaml_fs
inventory_base_uri: ${RECLASS_ROOT}
- ignore_class_notfound: ${RECLASS_IGNORE_CLASS_NOTFOUND:-False}
+ ${IGNORE_CLASS_NOTFOUND}
ext_pillar:
- reclass: *reclass
master_tops:
@@ -254,7 +258,7 @@
pretty_print: True
output: yaml
inventory_base_uri: ${RECLASS_ROOT}
- ignore_class_notfound: ${RECLASS_IGNORE_CLASS_NOTFOUND:-False}
+ ${IGNORE_CLASS_NOTFOUND}
EOF
clone_reclass