diff --git a/manifests/init.pp b/manifests/init.pp index b9be432a..ef415995 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -309,6 +309,8 @@ # Defaults to undef # [*baremetal_driver*] # Defaults to $facts['os_service_default'] +# [*baremetal_enabled_drivers*] +# Defaults to $facts['os_service_default'] # [*baremetal_enabled_hardware_types*] # Defaults to $facts['os_service_default'] # [*load_balancer_member_role*] @@ -527,6 +529,7 @@ class tempest( Optional[String[1]] $heat_flavor_name = undef, # ironic options $baremetal_driver = $facts['os_service_default'], + $baremetal_enabled_drivers = $facts['os_service_default'], $baremetal_enabled_hardware_types = $facts['os_service_default'], # octavia options $load_balancer_member_role = $facts['os_service_default'], @@ -797,6 +800,7 @@ class tempest( 'heat_plugin/minimal_instance_type': value => $flavor_ref; # ironic-tempest-plugin 'baremetal/driver': value => $baremetal_driver; + 'baremetal/enabled_drivers': value => join(any2array($baremetal_enabled_drivers), ','); 'baremetal/enabled_hardware_types': value => join(any2array($baremetal_enabled_hardware_types), ','); # octavia-tempest-plugin 'load_balancer/member_role': value => $load_balancer_member_role; diff --git a/releasenotes/notes/baremetal_enabld_drivers-57da34f4503603ae.yaml b/releasenotes/notes/baremetal_enabld_drivers-57da34f4503603ae.yaml new file mode 100644 index 00000000..922d385c --- /dev/null +++ b/releasenotes/notes/baremetal_enabld_drivers-57da34f4503603ae.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``tempest::baremetal_enabld_drivers`` parameter has been added. diff --git a/spec/classes/tempest_init_spec.rb b/spec/classes/tempest_init_spec.rb index 030919a1..8da1c5b3 100644 --- a/spec/classes/tempest_init_spec.rb +++ b/spec/classes/tempest_init_spec.rb @@ -337,6 +337,7 @@ describe 'tempest' do is_expected.to contain_tempest_config('heat_plugin/minimal_image_ref').with(:value => nil) is_expected.to contain_tempest_config('heat_plugin/minimal_instance_type').with(:value => nil) is_expected.to contain_tempest_config('baremetal/driver').with(:value => '') + is_expected.to contain_tempest_config('baremetal/enabled_drivers').with(:value => '') is_expected.to contain_tempest_config('baremetal/enabled_hardware_types').with(:value => '') is_expected.to contain_tempest_config('load_balancer/member_role').with(:value => '') is_expected.to contain_tempest_config('load_balancer/admin_role').with(:value => '')