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

7 lines
153 B
Bash
Executable File

#!/bin/bash
echo "clean chef clients"
yes | knife client bulk delete '^(?!chef-).*'
if [[ "$?" != "0" ]]; then
echo "failed to clean all clients"
fi