Skip to content

Commit cf74d57

Browse files
author
DEFERME Bert
committed
Fix exposing password for debug mode
1 parent d3b8e7e commit cf74d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/database/postgresql.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
}
7272

7373
exec { 'update_pgpass':
74-
command => "echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass",
74+
command => Sensitive("echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass"),
7575
path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}",
76-
unless => "grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass",
76+
unless => Sensitive("grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass"),
7777
require => File['/root/.pgpass'],
7878
}
7979

0 commit comments

Comments
 (0)