Project

General

Profile

« Previous | Next » 

Revision ce7bfca7

Added by Michael Moll over 9 years ago

use puppetlabs-puppetdb for Puppet master config

View differences:

spec/classes/puppet_server_config_spec.rb
should_not contain_file('/etc/puppet/puppet.conf').with_content(/storeconfigs/)
end
it 'should not configure PuppetDB' do
should_not contain_class('puppetdb')
should_not contain_class('puppetdb::master::config')
end
end
describe 'without foreman' do
......
end
end
describe 'with a PuppetDB host set' do
let :pre_condition do
"class {'puppet':
server => true,
server_puppetdb_host => 'mypuppetdb.example.com',
server_storeconfigs_backend => 'puppetdb',
}"
end
it 'should configure PuppetDB' do
should contain_class('puppetdb::master::config').with({
:puppetdb_server => 'mypuppetdb.example.com',
:puppetdb_port => 8081,
:puppetdb_soft_write_failure => false,
:manage_storeconfigs => false,
:restart_puppet => false,
})
end
end
describe 'with a puppet git branch map' do
let :pre_condition do
"class {'puppet':

Also available in: Unified diff