postgresql module error validating database connection

asked 2017-01-17 17:36:22 -0600

sdoyle gravatar image

OS: Redhat Enterprise 7.3 Puppet: 4.8.1

I wanted to get started using the postgresql module. I have a simple node classifier in my site.pp file where I simply declare the following as the documentation for the module states:

class { 'postgresql::server': }

When I execute the puppet agent on the server I get the following error:

Error: echo 'Unable to connect to defined database using: /usr/bin/psql --tuples-only --quiet    -p 5432  --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 @:5432/postgres]/returns: change from notrun to 0 failed: echo 'Unable to connect to defined database using: /usr/bin/psql --tuples-only --quiet    -p 5432  --dbname postgres ' && false returned 1 instead of one of [0]
Notice: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Dependency Exec[validate postgres connection for @:5432/postgres] has failures: true
Warning: /Stage[main]/Postgresql::Server::Service/Anchor[postgresql::server::service::end]: Skipping because of failed dependencies
Notice: /Stage[main]/Postgresql::Server/Anchor[postgresql::server::end]: Dependency Exec[validate postgres connection for @:5432/postgres] has failures: true
Warning: /Stage[main]/Postgresql::Server/Anchor[postgresql::server::end]: Skipping because of failed dependencies
Notice: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Dependency Exec[validate postgres connection for @:5432/postgres] has failures: true
Warning: /Stage[main]/Postgresql::Server::Reload/Exec[postgresql_reload]: Skipping because of failed dependencies

From what I see on the module page this should work. Any suggestions on how to resolve this would be appreciated.

edit retag flag offensive close merge delete