You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had trouble attempting to use this module with postgresql on another machine.
class { 'zabbix::server':
zabbix_url => 'zabbix.example.com',
dbhost => '10.0.0.2',
}
(Where the machine at 10.0.0.2 is already set up running postgresql).
I get the following types of puppet errors:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Postgresql_psql[Check for existence of db 'zabbix-server'] { require => Class[Postgresql::Server::Service] }, because Class[Postgresql::Server::Service] doesn't seem to be in the catalog
And
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Postgresql_psql[CREATE ROLE "zabbix-server" ENCRYPTED PASSWORD '**redacted**' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER CONNECTION LIMIT -1] { require => Class[Postgresql::Server] }, because Class[Postgresql::Server] doesn't seem to be in the catalog
This is because the module has require statements which reference the postgreqsl classes, assuming they're going to be on the same machine. If I add include postgresql::server to my manifest, then the errors go away. (But then I end up postgresql configured on the localhost, not remotely)
The text was updated successfully, but these errors were encountered:
Thanks for making time to create this issue. Yes, I'm aware that this module assumes everything is installed on the same host. I will take a look at the pull request you've created.
One other possible way that might be working for you. On the zabbix-server node:
As you already provided your own solution for this problem, I'll close this issue.
If you have any problems or questions, don't hesitate to open new issue (Or pull request ;-)).
I've had trouble attempting to use this module with postgresql on another machine.
(Where the machine at 10.0.0.2 is already set up running postgresql).
I get the following types of puppet errors:
And
This is because the module has require statements which reference the postgreqsl classes, assuming they're going to be on the same machine. If I add
include postgresql::server
to my manifest, then the errors go away. (But then I end up postgresql configured on the localhost, not remotely)The text was updated successfully, but these errors were encountered: