From d19b1209dc7d9cb28fc6e9302a0f9755e89488ce Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 16 May 2019 09:52:22 +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: Id8ec77c7bbe59327d87f5bf583916e9123db1bc0 --- manifests/client.pp | 2 ++ .../notes/add-openstackclient-client-9a93fa6590a23eb9.yaml | 3 +++ spec/classes/aodh_client_spec.rb | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-openstackclient-client-9a93fa6590a23eb9.yaml diff --git a/manifests/client.pp b/manifests/client.pp index f6cb7f73..524b9b90 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -19,5 +19,7 @@ class aodh::client ( tag => 'openstack', } + include '::openstacklib::openstackclient' + } diff --git a/releasenotes/notes/add-openstackclient-client-9a93fa6590a23eb9.yaml b/releasenotes/notes/add-openstackclient-client-9a93fa6590a23eb9.yaml new file mode 100644 index 00000000..7fe57825 --- /dev/null +++ b/releasenotes/notes/add-openstackclient-client-9a93fa6590a23eb9.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstackclient installation to the client class. diff --git a/spec/classes/aodh_client_spec.rb b/spec/classes/aodh_client_spec.rb index b1b5dc4c..52095989 100644 --- a/spec/classes/aodh_client_spec.rb +++ b/spec/classes/aodh_client_spec.rb @@ -14,6 +14,8 @@ describe 'aodh::client' do :tag => 'openstack', ) end + + it { is_expected.to contain_class('openstacklib::openstackclient') } end on_supported_os({