diff --git a/manifests/init.pp b/manifests/init.pp index b9afadfc..0efc8811 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -30,5 +30,5 @@ class glance( } } - ensure_resource('package', 'python-openstackclient', {'ensure' => $package_ensure}) + ensure_resource('package', 'python-openstackclient', {'ensure' => $package_ensure, tag => 'openstack'}) } diff --git a/spec/classes/glance_spec.rb b/spec/classes/glance_spec.rb index 06c93dad..cf863e93 100644 --- a/spec/classes/glance_spec.rb +++ b/spec/classes/glance_spec.rb @@ -31,7 +31,9 @@ describe 'glance' do 'mode' => '0770' )} - it { is_expected.to contain_package('python-openstackclient') } + it { is_expected.to contain_package('python-openstackclient').with( + :tag => 'openstack' + )} end end