Use new openstackclient tag

The new openstackclient tag was added so that we can get all resources
about openstack CLI more easily. This adds this tag to watcherclient
because the package provides some sub-commands.

Also make sure openstackclient is installed so that the 'openstack'
command is available.

Change-Id: Ie078debd7f75fa4c677a0e7c229a3e651035e2fc
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-09-07 13:33:09 +09:00
parent 39472d72e9
commit 1d8a9852d8
2 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ class watcher::client (
package { 'python-watcherclient':
ensure => $ensure,
name => $watcher::params::client_package_name,
tag => 'openstack',
tag => ['openstack', 'openstackclient'],
}
include openstacklib::openstackclient
}

View File

@@ -11,7 +11,7 @@ describe 'watcher::client' do
is_expected.to contain_package('python-watcherclient').with(
:ensure => 'present',
:name => platform_params[:client_package_name],
:tag => 'openstack',
:tag => ['openstack', 'openstackclient'],
)
end
end