File tree 4 files changed +3
-16
lines changed
4 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 6
6
let ( :puppetdb_params ) { }
7
7
let ( :puppetdb_master_config_params ) { }
8
8
9
- # TODO: temporary work-around for EL installs
10
- let ( :postgres_version ) { "(getvar('facts.os.family') == 'RedHat') ? { true => '12', default => undef }" }
9
+ let ( :postgres_version ) { 'undef' } # default
11
10
let ( :manage_firewall ) { "(getvar('facts.os.family') == 'RedHat' and Integer(getvar('facts.os.release.major')) > 7)" }
12
11
13
12
describe 'with defaults' do
Original file line number Diff line number Diff line change 3
3
shared_examples 'puppetdb' do
4
4
let ( :pp ) do
5
5
<<~PP
6
- # FIXME: temporary work-around for EL installs
7
6
if $facts['os']['family'] == 'RedHat' {
8
- $gpg_key_file = $facts['os']['release']['major'] ? {
9
- '7' => 'PGDG-RPM-GPG-KEY-RHEL7',
10
- default => 'PGDG-RPM-GPG-KEY-RHEL',
11
- }
12
- file { "/etc/pki/rpm-gpg/${gpg_key_file}":
13
- source => "https://download.postgresql.org/pub/repos/yum/keys/${gpg_key_file}",
14
- }
15
- -> Yumrepo <| tag == 'postgresql::repo' |> {
16
- gpgkey => "file:///etc/pki/rpm-gpg/${gpg_key_file}",
17
- }
18
-
19
7
# Work-around EL systemd in docker bug affecting forked services
20
8
file_line { 'puppetdb-unit-remove-pidfile':
21
9
path => '/lib/systemd/system/puppetdb.service',
Original file line number Diff line number Diff line change 220
220
end
221
221
222
222
shared_examples 'puppetdb::database::postgresql_ssl_rules' do |error |
223
- let ( :defaults ) { { } }
223
+ let ( :defaults ) { { postgres_version : '14' } }
224
224
let ( :with ) { defined? ( args ) ? defaults . merge ( args ) : defaults }
225
225
226
226
if error
Original file line number Diff line number Diff line change 94
94
{
95
95
read_database_username : params [ :read_database_username ] ,
96
96
database_name : params [ :database_name ] ,
97
- password_hash : 'md588e898a4bade3fe1c9b96f650ec85900' , # TODO: mock properly
97
+ password_hash : %r{^(md5|SCRAM)} , # TODO: mock properly
98
98
database_owner : params [ :database_username ] ,
99
99
}
100
100
end
You can’t perform that action at this time.
0 commit comments