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

10 lines
221 B
Bash
Executable File

#!/bin/bash
systems=$(cobbler system list)
echo "remove systems: $systems"
for system in $systems; do
cobbler system remove --name=$system
if [[ "$?" != "0" ]]; then
echo "failed to remove system %s"
fi
done