user reclass.validate_* in model verification
diff --git a/bootstrap.sh b/bootstrap.sh
index 9568a5a..e72b030 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -15,7 +15,7 @@
# shopt -u dotglob
export RECLASS_ROOT=${RECLASS_ROOT:-/srv/salt/reclass}
function source_local_envs() {
- for path in /tmp/kitchen /srv/salt . ${RECLASS_ROOT}/classes/cluster ${RECLASS_ROOT}/classes/cluster/${CLUSTER_NAME}; do
+ for path in / /tmp/kitchen /srv/salt . ${RECLASS_ROOT}/classes/cluster ${RECLASS_ROOT}/classes/cluster/${CLUSTER_NAME}; do
for f in $(find $path -maxdepth 1 -name '*.env' 2> /dev/null); do
echo "Sourcing env variables from $f"
source $f
@@ -591,6 +591,7 @@
log_info "State: salt.master.storage.node"
set +e
+ # TODO: PLACEHOLDER TO TRIGGER NODE GENERATION THROUG SALT REACT.
$SUDO salt-call ${SALT_OPTS} state.apply reclass.storage.node
ret=$?
set -e
@@ -622,9 +623,12 @@
if [[ $VERIFY_SALT_CALL =~ ^(True|true|1|yes)$ ]]; then
$SUDO salt-call ${SALT_OPTS} --id=${MASTER_HOSTNAME} grains.item roles > /tmp/${MASTER_HOSTNAME}.grains.item.roles
$SUDO salt-call ${SALT_OPTS} --id=${MASTER_HOSTNAME} state.show_lowstate > /tmp/${MASTER_HOSTNAME}.state.show_state
+ $SUDO salt-call ${SALT_OPTS} --id=${MASTER_HOSTNAME} reclass.validate_yaml > /tmp/${MASTER_HOSTNAME}.reclass.validate_yaml
+ $SUDO salt-call ${SALT_OPTS} --id=${MASTER_HOSTNAME} reclass.validate_pillar > /tmp/${MASTER_HOSTNAME}.reclass.validate_pillar
$SUDO salt-call --no-color grains.items
$SUDO salt-call --no-color pillar.data
fi
+ # TODO: REMOVE reclass --nodeinfo section / run only on debug - as the only required is reclass.validate_*
if ! $SUDO reclass --nodeinfo ${MASTER_HOSTNAME} > /tmp/${MASTER_HOSTNAME}.reclass.nodeinfo; then
log_err "For more details see full log /tmp/${MASTER_HOSTNAME}.reclass.nodeinfo"
exit 1
@@ -718,7 +722,7 @@
system_config_master
saltmaster_bootstrap &&\
saltmaster_init &&\
- verify_salt_minions
+ #verify_salt_minions
}
function default() {