puppet-openstack-cloud/spec/classes/cloud_install_puppetdb_server.rb
Yanis Guenane f251def4b0 install: Automatization of the install-server
This commit aims to make it possible to automate the install server
It allows the automatization of the following pieces :

  * The Puppet Master Server
  * The PuppetDB server
  * The hiera configuration

Change-Id: I5f4419ed6cb1668c1d135e9760cbb390ffdf2c68
2014-12-10 07:57:51 -05:00

29 lines
471 B
Ruby

require 'spec_helper'
describe 'cloud::install::puppetdb_server' do
shared_examples_for 'puppetdb' do
it 'install puppetdb' do
is_exptected.to contain_class('puppetdb::server')
end
end
context 'on Debian platforms' do
let :facts do
{ :osfamily => 'Debian' }
end
it_configures 'puppetdb'
end
context 'on RedHat platforms' do
let :facts do
{ :osfamily => 'RedHat' }
end
it_configures 'puppetdb'
end
end