Skip to content

Commit

Permalink
(role/puppetdb) bump postgresql to 15
Browse files Browse the repository at this point in the history
And switch from the pgdg packages to appstream.
  • Loading branch information
jhoblitt committed Mar 28, 2024
1 parent bcd7a02 commit 5250384
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hieradata/role/puppetdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ classes:
- "profile::core::common"
- "puppetdb"

postgresql::globals::manage_dnf_module: true # use appstream packages
puppetdb::database_listen_address: "localhost"
puppetdb::globals::version: "7.14.0"
puppetdb::manage_package_repo: false
puppetdb::postgres_version: "15"
puppetdb::java_args:
"-Xmx": "1g"
"-Xms": "512m"
Expand Down
20 changes: 19 additions & 1 deletion spec/hosts/roles/puppetdb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,26 @@
PUPPETDB_VERSION = '7.14.0'

shared_examples 'puppetdb' do
it { is_expected.to contain_yum__versionlock('puppetdb').with_version(PUPPETDB_VERSION) }
it { is_expected.to contain_class('puppetdb::globals').with_version(PUPPETDB_VERSION) }
it { is_expected.to contain_yum__versionlock('puppetdb').with_version(PUPPETDB_VERSION) }

it do
is_expected.to contain_class('puppetdb').with(
listen_address: '0.0.0.0',
java_args: {
'-Xmx' => '1g',
'-Xms' => '512m',
},
)
end

it do
is_expected.to contain_class('postgresql::globals').with(
manage_package_repo: false,
manage_dnf_module: true,
version: '15',
)
end
end

role = 'puppetdb'
Expand Down

0 comments on commit 5250384

Please sign in to comment.