From 3854d2f5316232aec8702395d0d7b39cab41e905 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 16 May 2019 09:52:23 +0800 Subject: [PATCH] Add openstackclient installation to the client class The repo is inside the openstackclient plugin commands[1]. [1]https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html Change-Id: I3748cb4266b0d9c59bdcf4574b3755f2d897fc96 --- manifests/client.pp | 2 ++ .../notes/add-openstackclient-client-ab8c46a274ff4349.yaml | 3 +++ spec/classes/gnocchi_client_spec.rb | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-openstackclient-client-ab8c46a274ff4349.yaml diff --git a/manifests/client.pp b/manifests/client.pp index deddbaaf..2b9f4b42 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -18,5 +18,7 @@ class gnocchi::client ( tag => 'openstack', } + include '::openstacklib::openstackclient' + } diff --git a/releasenotes/notes/add-openstackclient-client-ab8c46a274ff4349.yaml b/releasenotes/notes/add-openstackclient-client-ab8c46a274ff4349.yaml new file mode 100644 index 00000000..7fe57825 --- /dev/null +++ b/releasenotes/notes/add-openstackclient-client-ab8c46a274ff4349.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstackclient installation to the client class. diff --git a/spec/classes/gnocchi_client_spec.rb b/spec/classes/gnocchi_client_spec.rb index e2b13b8e..03733770 100644 --- a/spec/classes/gnocchi_client_spec.rb +++ b/spec/classes/gnocchi_client_spec.rb @@ -10,6 +10,8 @@ describe 'gnocchi::client' do :name => platform_params[:client_package_name], :tag => 'openstack', )} + + it { is_expected.to contain_class('openstacklib::openstackclient') } end on_supported_os({