-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
setting manage_repo to false breaks server install #38
Conversation
…done in zabbix::repo so that it only runs if repos are being managed. This makes requiring the class or including the class work even if not managing the repos.
While testing the fix for this I found another bug that I will try to also address: Error: Parameter name failed on Mysql_user[zabbix-server@localhost]: Database user zabbix-server@localhost must be properly quoted, invalid character: '-'
Wrapped exception:
Database user zabbix-server@localhost must be properly quoted, invalid character: '-' |
When viewing the changes to |
Thanks! Kind regards, |
I've done a little rspec before, what is your test environment? AKA, version of puppet, version of ruby, etc? is |
it seems you call a file named |
So, I have gathered that I should call Also, once this is setup the way it needs to be, I'll go back and squash my commits so that only useful ones show up as opposed to having multiple ones where I am hacking on Travis's setup and the like. |
Hi Genebean, At the moment, I'm running the 'rake spec' command locally on my Mac, as I'm developing on the mac. I'am however busy with my internal Jenkins instance to run the 'rake spec' automatically with every push I make. It takes some time though. I was testing with puppet 3.4.3 and ruby 2.0.0 and just upgraded to puppet 3.7.3 on my mac. (And I just noticed with the new puppet I have an error.. :-)) Kind regards, |
Thanks. I have a Mac too so I will try it there and see what happens. |
In the process of looking at this I found in some of my tests that the zabbix-server process is trying to start too soon. I think this can be resolved via commit genebean/puppet-zabbix@1b89db8 As for the tests, I haven't had a chance to try on my Mac but any help you could give would be greatly appreciated. |
…aded into the db. This ensures that.
+1 |
setting manage_repo to false breaks server install
Thanks! Will take a look at the rspecs.. no worries ;-) |
Awesome |
Updated the rspec tests, work now. :-) |
You have this chunk of code in
zabbix::web
but nothing that ensures it runs before the this chunk in the same file:
This causes the following error:
Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Package[zabbix-web-mysql] { require => Class[Zabbix::Repo] }, because Class[Zabbix::Repo] doesn't seem to be in the catalog
I see how to fix this and will be submitting a pull request shortly but wanted to go ahead and list it as a bug in case anyone else is effected by this.