Skip to content

Commit d975ad9

Browse files
author
DEFERME Bert
committed
Fix exposing password for debug mode
1 parent 892e593 commit d975ad9

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
@@ -69,9 +69,9 @@
6969
}
7070

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

0 commit comments

Comments
 (0)