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
When the zabbix_server and zabbix_web are at the same server but the database are on another this module don't create a pg_hba rule for zabbix_server/zabbix_web
What behaviour did you expect instead
I expect the zabbix_database class was create a zabbix database and create a pg_hba rule for zabbix_server
Output log
Info: Using configured environment 'zabbix'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for renegade.detran.df
Info: Applying configuration version '1497997556'
Notice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_create.sql]/returns: psql: FATAL: no pg_hba.conf entry for host "10.138.100.143", user "zabbix_server", database "zabbix_server", SSL off
Error: cd /usr/share/doc/zabbix--pgsql-3.2/ && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h '10.138.100.23' -U 'zabbix_server' -d 'zabbix_server' -f create.sql && touch /etc/zabbix/.schema.done returned 2 instead of one of [0]
Error: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_create.sql]/returns: change from notrun to 0 failed: cd /usr/share/doc/zabbix--pgsql-3.2/ && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h '10.138.100.23' -U 'zabbix_server' -d 'zabbix_server' -f create.sql && touch /etc/zabbix/.schema.done returned 2 instead of one of [0]
Notice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_images.sql]: Dependency Exec[zabbix_server_create.sql] has failures: true
Warning: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_images.sql]: Skipping because of failed dependencies
Notice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_data.sql]: Dependency Exec[zabbix_server_create.sql] has failures: true
Warning: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_server_data.sql]: Skipping because of failed dependencies
Any additional information you'd like to impart
I Will try to fix it with a pullrequest :D
The text was updated successfully, but these errors were encountered:
* Add pg_hba rule to allow zabbix server
Add a pg_hba rule to aways add this rule for allow zabbix server connect to database. #411
* Rake fix
* Add database_host_ip param
* Include validation for database host ip and server ip
* include spec for zabbix_database in another server than zabbix_server and zabbix_web
* fix param
* Include databsse_host_ip on spec for multiple module
* allow create pg_hba rule for zabbix_server alson when database_host is not setted
* if fixing
* Spell fix
* fix spell
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
When the zabbix_server and zabbix_web are at the same server but the database are on another this module don't create a pg_hba rule for zabbix_server/zabbix_web
What behaviour did you expect instead
I expect the zabbix_database class was create a zabbix database and create a pg_hba rule for zabbix_server
Output log
Any additional information you'd like to impart
I Will try to fix it with a pullrequest :D
The text was updated successfully, but these errors were encountered: