Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database is being managed even if manage_database is false #170

Closed
ericsysmin opened this issue Feb 17, 2016 · 4 comments
Closed

database is being managed even if manage_database is false #170

ericsysmin opened this issue Feb 17, 2016 · 4 comments

Comments

@ericsysmin
Copy link
Contributor

Notice: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_create.sql]/returns: /bin/sh: line 0: cd: /usr/share/doc/zabbix--mysql-2.4/create: No such file or directory
Error: cd /usr/share/doc/zabbix--mysql-2.4/create && if [ -f schema.sql.gz ]; then gunzip schema.sql.gz ; fi && mysql -h 'localhost' -u 'zabbix_server' -p'zabbix' -D 'zabbix' < schema.sql && touch /etc/zabbix/.schema.done returned 1 instead of one of [0]
Error: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_create.sql]/returns: change from notrun to 0 failed: cd /usr/share/doc/zabbix--mysql-2.4/create && if [ -f schema.sql.gz ]; then gunzip schema.sql.gz ; fi && mysql -h 'localhost' -u 'zabbix_server' -p'zabbix' -D 'zabbix' < schema.sql && touch /etc/zabbix/.schema.done returned 1 instead of one of [0]
Notice: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_images.sql]: Dependency Exec[zabbix_server_create.sql] has failures: true
Warning: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_images.sql]: Skipping because of failed dependencies
Notice: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_data.sql]: Dependency Exec[zabbix_server_create.sql] has failures: true
Warning: /Stage[main]/Zabbix::Database::Mysql/Exec[zabbix_server_data.sql]: Skipping because of failed dependencies
Notice: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Dependency Exec[zabbix_server_create.sql] has failures: true
Warning: /Stage[main]/Zabbix::Server/Service[zabbix-server]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.65 seconds

even though
zabbix::params::manage_database: false
zabbix::database::manage_database: false

@ericsysmin
Copy link
Contributor Author

i have fixed this in the patch-6 with zabbix::server::manage_database: false now works and stops the errors from occuring

@jk2l
Copy link
Contributor

jk2l commented Jul 22, 2016

The issue is not truly resolved. The parameter didn't get pass down from base class to zabbix::server

@bastelfreak
Copy link
Member

Hi @jk2l, thanks for reporting this. Are you able to provide a patch for it?

@jk2l
Copy link
Contributor

jk2l commented Jul 22, 2016

already did. please check the pull request #249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants