commands:
base [ create | boot ] ...
- cluster [ build | destroy | create | update_hosts | boot | setup ] ...
+ cluster [ build |
+ destroy | undefine |
+ create | update_hosts | boot | setup ] ...
create base
create a base image
vircmd destroy "$CLUSTER" || true
}
+cluster_undefine ()
+{
+ announce "cluster undefine \"${CLUSTER}\""
+ [ -n "$CLUSTER" ] || die "\$CLUSTER not set"
+
+ vircmd undefine "$CLUSTER" || true
+}
+
cluster_update_hosts ()
{
announce "cluster update_hosts \"${CLUSTER}\""
actions_init
for t in "$@" ; do
case "$t" in
- destroy|create|update_hosts|boot|setup)
+ destroy|undefine|create|update_hosts|boot|setup)
actions_add "cluster_${t}" ;;
build)
- for t in destroy create update_hosts boot setup ; do
+ for t in destroy undefine create update_hosts boot setup ; do
actions_add "cluster_${t}"
done
;;