While running puppet agent, I am getting following error. Can someone help me understand what might be wrong.
Warning: Exec[validate postgres connection for /postgres](provider=posix): Cannot understand environment setting "PGPASSWORD="
Warning: Exec[validate postgres connection for /postgres](provider=posix): Cannot understand environment setting "PGPASSWORD="
Notice: /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate postgres connection for /postgres]/returns: Unable to connect to defined database using: /usr/bin/psql --tuples-only --quiet -h -U -p --dbname postgres
Error: echo 'Unable to connect to defined database using: /usr/bin/psql --tuples-only --quiet -h -U -p --dbname postgres ' && false returned 1 instead of one of [0]
Error: /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate postgres connection for /postgres]/returns: change from notrun to 0 failed: echo 'Unable to connect to defined database using: /usr/bin/psql --tuples-only --quiet -h -U -p --dbname postgres ' && false returned 1 instead of one of [0]