Add client manifest

Init commit for python-freezerclient

Change-Id: Icd59eeeadd28163c8c243b534e605eafb5837d6a
This commit is contained in:
Vitaliy 2017-03-29 22:34:21 +00:00
parent 6444736434
commit 25a4cf89b6
2 changed files with 52 additions and 0 deletions

25
manifests/client.pp Normal file
View File

@ -0,0 +1,25 @@
#
# Installs the glance python library.
#
# == parameters
# [*ensure*]
# (Optional) Ensure state for pachage.
# Defaults to 'present'
#
class freezer::client(
$ensure = 'present'
) {
include ::freezer::deps
include ::freezer::params
package { 'python-freezerclient':
ensure => $ensure,
name => $::freezer::params::client_package,
tag => ['openstack', 'freezer-support-package'],
# TODO: vnogin
# Provider should be removed when deb and rpm packages are available
provider => 'pip',
}
}

View File

@ -0,0 +1,27 @@
require 'spec_helper'
describe 'freezer::client' do
shared_examples 'freezer client' do
it { is_expected.to contain_class('freezer::params') }
it { is_expected.to contain_package('python-freezerclient').with(
:name => 'python-freezerclient',
:ensure => 'present',
:tag => ['openstack', 'freezer-support-package'],
:provider => 'pip',
)
}
end
on_supported_os({
:supported_os => OSDefaults.get_supported_os
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge!(OSDefaults.get_facts())
end
it_configures 'freezer client'
end
end
end