openstack-virtual-baremetal/bin/stop-env
Ben Nemec 269bab222a Move envup to start-env and add stop-env
The env* name scheme was mildly annoying for tab completion because
it required four characters to be typed before the intended command
was disambiguated.  This rename drops that to three characters, which
I find much more usable.  It's also more consistent with the naming
of the other scripts.
2018-04-30 11:48:24 -05:00

9 lines
335 B
Bash
Executable File

#!/bin/bash
# Usage: stop-env <ID>
# Example: stop-env test
# This will stop the undercloud and bmc, as well as up to 5 baremetal instances
# TODO: Make this smarter so it will handle an arbitrary number of baremetal instances
nova stop undercloud-$1 bmc-$1 baremetal-$1_0 baremetal-$1_1 baremetal-$1_2 baremetal-$1_3 baremetal-$1_4