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
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 5.5.10
Ruby: 2.5.1p57
Distribution: Ubuntu 18.04.2
Module version: 6.7.0
How to reproduce (e.g Puppet code you use)
database_port => '5444'
What are you seeing
Parameter is ignored as default port 5432 is hard coded: manifests/database/postgresql.pp: command => "echo ${database_host}:5432:${database_name}:${database_user}:${database_password} >> /root/.pgpass",
What behaviour did you expect instead
Parameter "database_port => '5444' " to be used when building "/root/.pgpass" and to be used when executing "Exec[zabbix_server_create.sql]" manifests/database/postgresql.pp: command => "echo ${database_host}:${database_port}:${database_name}:${database_user}:${database_password} >> /root/.pgpass", manifests/database/postgresql.pp: unless => "grep \"${database_host}:${database_port}:${database_name}:${database_user}:${database_password}\" /root/.pgpass",
Output log
Error: 'cd /usr/share/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -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 && if [ -f create.sql.gz ]; then gunzip -f create. sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -f create.sql && touch /etc/zabbix/.schema.done' returned 2 instead of one of [0] (corrective)
Any additional information you'd like to impart
Command "Exec[zabbix_server_create.sql]" should be updated as well -p "${database_port}": cd /usr/share/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -p "${database_port}" -f create.sql && touch /etc/zabbix/.schema.done
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
database_port => '5444'
What are you seeing
Parameter is ignored as default port 5432 is hard coded:
manifests/database/postgresql.pp: command => "echo ${database_host}:5432:${database_name}:${database_user}:${database_password} >> /root/.pgpass",
What behaviour did you expect instead
Parameter "database_port => '5444' " to be used when building "/root/.pgpass" and to be used when executing "Exec[zabbix_server_create.sql]"
manifests/database/postgresql.pp: command => "echo ${database_host}:${database_port}:${database_name}:${database_user}:${database_password} >> /root/.pgpass", manifests/database/postgresql.pp: unless => "grep \"${database_host}:${database_port}:${database_name}:${database_user}:${database_password}\" /root/.pgpass",
Output log
Error: 'cd /usr/share/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -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 && if [ -f create.sql.gz ]; then gunzip -f create. sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -f create.sql && touch /etc/zabbix/.schema.done' returned 2 instead of one of [0] (corrective)
Any additional information you'd like to impart
Command "Exec[zabbix_server_create.sql]" should be updated as well -p "${database_port}":
cd /usr/share/doc/zabbix-*-pgsql && if [ -f create.sql.gz ]; then gunzip -f create.sql.gz ; fi && psql -h 'zabbix.db.domain.com' -U 'zabbix' -d 'zabbix' -p "${database_port}" -f create.sql && touch /etc/zabbix/.schema.done
The text was updated successfully, but these errors were encountered: