fi
#make sure nodes.json file in /opt/ironic/ are configured
- if [ ! -f $IRONIC_DATA_DIR/nodes.json ]; then
- cp ${SCRIPTDIR}/nodes.json.sample $IRONIC_DATA_DIR/nodes.json
+ if [ ! -f $NODES_FILE ]; then
+ cp ${SCRIPTDIR}/nodes.json.sample $NODES_FILE
fi
}
function clean_all {
list_nodes | clean_bm_hosts
- if [ -f $IRONIC_DATA_DIR/nodes.json ]; then
- rm -rf $IRONIC_DATA_DIR/nodes.json
+ if [ -f $NODES_FILE ]; then
+ rm -rf $NODES_FILE
fi
}