diff --git a/manifests/database/postgresql.pp b/manifests/database/postgresql.pp index a6b45c529..473ed347b 100644 --- a/manifests/database/postgresql.pp +++ b/manifests/database/postgresql.pp @@ -71,9 +71,9 @@ } exec { 'update_pgpass': - command => "echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass", + command => Sensitive("echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass"), path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", - unless => "grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass", + unless => Sensitive("grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass"), require => File['/root/.pgpass'], }