From b33ccfd5365e145b3c870e5264fac8e8d27cfdcc Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 16 May 2019 09:52:24 +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: I2d15a0b30394e9187bda81f5dcb0074d579574c5 --- manifests/client.pp | 2 ++ .../notes/add-openstackclient-client-af0f5c3f707e1f49.yaml | 3 +++ spec/classes/mistral_client_spec.rb | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-openstackclient-client-af0f5c3f707e1f49.yaml diff --git a/manifests/client.pp b/manifests/client.pp index 6d775ce..209b914 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -19,4 +19,6 @@ class mistral::client( name => $::mistral::params::client_package, tag => ['openstack', 'mistral-package'], } + + include '::openstacklib::openstackclient' } diff --git a/releasenotes/notes/add-openstackclient-client-af0f5c3f707e1f49.yaml b/releasenotes/notes/add-openstackclient-client-af0f5c3f707e1f49.yaml new file mode 100644 index 0000000..7fe5782 --- /dev/null +++ b/releasenotes/notes/add-openstackclient-client-af0f5c3f707e1f49.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstackclient installation to the client class. diff --git a/spec/classes/mistral_client_spec.rb b/spec/classes/mistral_client_spec.rb index 64896a4..ca5f3c5 100644 --- a/spec/classes/mistral_client_spec.rb +++ b/spec/classes/mistral_client_spec.rb @@ -14,6 +14,8 @@ describe 'mistral::client' do :tag => ['openstack', 'mistral-package'] ) end + + it { is_expected.to contain_class('openstacklib::openstackclient') } end on_supported_os({