
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
29 lines
471 B
Ruby
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
|