We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a29d038 + d499390 commit 3d73e7fCopy full SHA for 3d73e7f
manifests/server/config.pp
@@ -19,7 +19,7 @@
19
if ($manage_pg_hba_conf == true) {
20
# Prepare the main pg_hba file
21
concat { $pg_hba_conf_path:
22
- owner => 0,
+ owner => $user,
23
group => $group,
24
mode => '0640',
25
warn => true,
spec/acceptance/server_spec.rb
@@ -19,6 +19,13 @@ class { 'postgresql::server': }
it { should be_listening }
end
+ describe file('/var/lib/pgsql/data/pg_hba.conf') do
+ it { should be_file }
+ it { should be_owned_by 'postgres' }
+ it { should be_grouped_into 'postgres' }
26
+ it { should be_mode 640 }
27
+ end
28
+
29
describe 'setting postgres password' do
30
it 'should install and successfully adjust the password' do
31
pp = <<-EOS.unindent
0 commit comments