The fun part about having multiple vendors providing the same cloud
is that while their APIs are the same, what they do with their metadata
tends to be ... fun. So in order to be able to express sanely what you
want without needing to stick tons of unreadable uuids in your config,
it turns out what sometimes you need to further filter image and flavor
names. Specific examples are (deprecated) images in HP Cloud and the
Standard and Performance flavors on Rackspace.
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
# along with this software. If not, see <http://www.gnu.org/licenses/>.
import operator
import os
import os
try:
try:
@ -81,6 +82,9 @@ options:
- The name of the base image to boot. Mutually exclusive with image_id
- The name of the base image to boot. Mutually exclusive with image_id
required: true
required: true
default: None
default: None
image_filter:
description:
- Text to use to filter image names, for the case, such as HP, where there are multiple image names matching the common identifying portions. image_filter is a negative match filter - it is text that may not exist in the image name. Defaults to "(deprecated)"
flavor_id:
flavor_id:
description:
description:
- The id of the flavor in which the new VM has to be created. Mutually exclusive with flavor_ram
- The id of the flavor in which the new VM has to be created. Mutually exclusive with flavor_ram
@ -91,6 +95,9 @@ options:
- The minimum amount of ram in MB that the flavor in which the new VM has to be created must have. Mutually exclusive with flavor_id
- The minimum amount of ram in MB that the flavor in which the new VM has to be created must have. Mutually exclusive with flavor_id
required: false
required: false
default: 1
default: 1
flavor_filter:
description:
- Text to use to filter flavor names, for the case, such as Rackspace, where there are multiple flavors that have the same ram count. flavor_filter is a positive match filter - it must exist in the flavor name.