Skip to content

Commit

Permalink
Merge pull request #579 from voxpupuli/bastelfreak-patch-1
Browse files Browse the repository at this point in the history
pool_size: default to amount of CPU cores
  • Loading branch information
bastelfreak authored Jul 5, 2022
2 parents 5deead8 + 96a6b30 commit b2951a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$sources = undef
$puppet_master = true
$proxy = undef
$pool_size = undef
$pool_size = $facts['processors']['count']
$gem_source = undef

if 'puppet_environment' in $facts {
Expand Down
10 changes: 0 additions & 10 deletions spec/classes/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,6 @@
it { is_expected.to contain_file('r10k.yaml').with_content(%r{^:proxy: https://proxy.local:8080$}) }
end

context 'with empty pool_size' do
let :params do
{
pool_size: :undef
}
end

it { is_expected.to contain_file('r10k.yaml').without_content(%r{^:pool_size: .*$}) }
end

context 'with pool_size' do
let :params do
{
Expand Down

0 comments on commit b2951a6

Please sign in to comment.