summaryrefslogtreecommitdiffstats
path: root/compass-deck/bin/cobbler
diff options
context:
space:
mode:
Diffstat (limited to 'compass-deck/bin/cobbler')
-rwxr-xr-xcompass-deck/bin/cobbler/remove_systems.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/compass-deck/bin/cobbler/remove_systems.sh b/compass-deck/bin/cobbler/remove_systems.sh
new file mode 100755
index 0000000..1973d43
--- /dev/null
+++ b/compass-deck/bin/cobbler/remove_systems.sh
@@ -0,0 +1,9 @@
+#!/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