diff --git a/lib/puppet/type/tempest_glance_id_setter.rb b/lib/puppet/type/tempest_glance_id_setter.rb index 803eb24f..260595b7 100644 --- a/lib/puppet/type/tempest_glance_id_setter.rb +++ b/lib/puppet/type/tempest_glance_id_setter.rb @@ -20,6 +20,10 @@ Puppet::Type.newtype(:tempest_glance_id_setter) do desc 'name of glance image' end + autorequire(:glance_image) do + [self[:image_name]] if self[:image_name] + end + autorequire(:package) do ['python-openstackclient', 'python3-openstackclient'] end diff --git a/manifests/init.pp b/manifests/init.pp index d20c0851..62b1b53e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -836,7 +836,6 @@ class tempest( tempest_conf_path => $tempest_conf, image_name => $image_name, } - Glance_image<||> -> Tempest_glance_id_setter['image_ref'] Tempest_config<||> -> Tempest_glance_id_setter['image_ref'] Keystone_user_role<||> -> Tempest_glance_id_setter['image_ref'] } elsif ($image_name and $image_ref) or (! $image_name and ! $image_ref) { @@ -848,7 +847,6 @@ class tempest( tempest_conf_path => $tempest_conf, image_name => $image_name_alt, } - Glance_image<||> -> Tempest_glance_id_setter['image_ref_alt'] Tempest_config<||> -> Tempest_glance_id_setter['image_ref_alt'] Keystone_user_role<||> -> Tempest_glance_id_setter['image_ref_alt'] } elsif ($image_name_alt and $image_ref_alt) or (! $image_name_alt and ! $image_ref_alt) {