Merge "Add option to control flavor management"
This commit is contained in:
commit
d9ece3f340
@ -32,8 +32,6 @@
|
|||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
# [*configure_networks*]
|
# [*configure_networks*]
|
||||||
# Defaults to true
|
# Defaults to true
|
||||||
# [*l2gw_switch*]
|
|
||||||
# Defaults to $facts['os_service_default']
|
|
||||||
# [*public_network_name*]
|
# [*public_network_name*]
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
# [*neutron_api_extensions*]
|
# [*neutron_api_extensions*]
|
||||||
@ -106,18 +104,22 @@
|
|||||||
# Defaults to false
|
# Defaults to false
|
||||||
# [*ssh_key_type*]
|
# [*ssh_key_type*]
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
# [*flavor_name*]
|
# [*configure_flavors*]
|
||||||
# Defaults to undef
|
# Defaults to true
|
||||||
# [*flavor_name_alt*]
|
|
||||||
# Defaults to undef
|
|
||||||
# [*flavor_ref*]
|
# [*flavor_ref*]
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
# [*flavor_ref_alt*]
|
# [*flavor_ref_alt*]
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
|
# [*flavor_name*]
|
||||||
|
# Defaults to undef
|
||||||
|
# [*flavor_name_alt*]
|
||||||
|
# Defaults to undef
|
||||||
# [*resize_available*]
|
# [*resize_available*]
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
# [*use_dynamic_credentials*]
|
# [*use_dynamic_credentials*]
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
|
# [*l2gw_switch*]
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
# [*public_network_id*]
|
# [*public_network_id*]
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
# [*public_router_id*]
|
# [*public_router_id*]
|
||||||
@ -387,6 +389,9 @@ class tempest(
|
|||||||
$image_ref_alt = undef,
|
$image_ref_alt = undef,
|
||||||
$image_ssh_user = undef,
|
$image_ssh_user = undef,
|
||||||
$image_alt_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 = undef,
|
||||||
$flavor_ref_alt = undef,
|
$flavor_ref_alt = undef,
|
||||||
Optional[String[1]] $flavor_name = undef,
|
Optional[String[1]] $flavor_name = undef,
|
||||||
@ -400,8 +405,6 @@ class tempest(
|
|||||||
$volume_build_interval = $facts['os_service_default'],
|
$volume_build_interval = $facts['os_service_default'],
|
||||||
$volume_build_timeout = $facts['os_service_default'],
|
$volume_build_timeout = $facts['os_service_default'],
|
||||||
$object_storage_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
|
# testing features that are supported
|
||||||
$resize_available = $facts['os_service_default'],
|
$resize_available = $facts['os_service_default'],
|
||||||
$use_dynamic_credentials = $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 {
|
if ! $flavor_ref and $flavor_name {
|
||||||
tempest_flavor_id_setter { 'compute/flavor_ref':
|
tempest_flavor_id_setter { 'compute/flavor_ref':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
@ -937,6 +941,7 @@ class tempest(
|
|||||||
} elsif ($heat_flavor_name and $heat_flavor_ref) {
|
} 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')
|
fail('heat_flavor_ref and heat_flavor_name are both set: please set only one of them')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if $glance_available and $configure_images {
|
if $glance_available and $configure_images {
|
||||||
if ! $image_ref and $image_name {
|
if ! $image_ref and $image_name {
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The new ``tempest::configure_flavors`` parameter has been added.
|
Loading…
x
Reference in New Issue
Block a user