compass-core/bin/chef/clean_nodes.sh
xiaodongwang 37a334a7b7 clean cobbler and chef when refresh
Change-Id: I15d24c3e8b08956710de4c86083def4dd55cf0cf
2014-09-08 11:55:50 -07:00

7 lines
137 B
Bash
Executable File

#!/bin/bash
echo "clean chef nodes"
yes | knife node bulk delete '.*'
if [[ "$?" != "0" ]]; then
echo "failed to clean all nodes"
fi