Merge "Add option to control flavor management"

This commit is contained in:
Zuul 2024-06-10 07:42:19 +00:00 committed by Gerrit Code Review
commit d9ece3f340
2 changed files with 63 additions and 54 deletions

View File

@ -32,8 +32,6 @@
# Defaults to undef
# [*configure_networks*]
# Defaults to true
# [*l2gw_switch*]
# Defaults to $facts['os_service_default']
# [*public_network_name*]
# Defaults to undef
# [*neutron_api_extensions*]
@ -106,18 +104,22 @@
# Defaults to false
# [*ssh_key_type*]
# Defaults to $facts['os_service_default']
# [*flavor_name*]
# Defaults to undef
# [*flavor_name_alt*]
# Defaults to undef
# [*configure_flavors*]
# Defaults to true
# [*flavor_ref*]
# Defaults to undef
# [*flavor_ref_alt*]
# Defaults to undef
# [*flavor_name*]
# Defaults to undef
# [*flavor_name_alt*]
# Defaults to undef
# [*resize_available*]
# Defaults to $facts['os_service_default']
# [*use_dynamic_credentials*]
# Defaults to $facts['os_service_default']
# [*l2gw_switch*]
# Defaults to $facts['os_service_default']
# [*public_network_id*]
# Defaults to undef
# [*public_router_id*]
@ -387,6 +389,9 @@ class tempest(
$image_ref_alt = undef,
$image_ssh_user = undef,
$image_alt_ssh_user = undef,
$run_ssh = false,
$ssh_key_type = $facts['os_service_default'],
Boolean $configure_flavors = true,
$flavor_ref = undef,
$flavor_ref_alt = undef,
Optional[String[1]] $flavor_name = undef,
@ -400,8 +405,6 @@ class tempest(
$volume_build_interval = $facts['os_service_default'],
$volume_build_timeout = $facts['os_service_default'],
$object_storage_build_timeout = $facts['os_service_default'],
$run_ssh = false,
$ssh_key_type = $facts['os_service_default'],
# testing features that are supported
$resize_available = $facts['os_service_default'],
$use_dynamic_credentials = $facts['os_service_default'],
@ -882,6 +885,7 @@ class tempest(
}
if $nova_available and $configure_flavors {
if ! $flavor_ref and $flavor_name {
tempest_flavor_id_setter { 'compute/flavor_ref':
ensure => present,
@ -937,6 +941,7 @@ class tempest(
} elsif ($heat_flavor_name and $heat_flavor_ref) {
fail('heat_flavor_ref and heat_flavor_name are both set: please set only one of them')
}
}
if $glance_available and $configure_images {
if ! $image_ref and $image_name {

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``tempest::configure_flavors`` parameter has been added.