-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cleanup and bugfixes to ensure cookbook runs on modern installs. #125
Conversation
Remove oracle suite since java cookbook doesn't support it anymore.
Issues with the java cookbook dependency:
|
Fix raise_error warning about missing string.
Update OS and package versions.
Graylog now successfully starts with Edit: It starts up with Centos and Debian as well. |
@bernd @mariussturm |
@juju2112 give me a moment, I can review this in the next days! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good in general! Just some smaller issues around a kitchen
test run (see inline comments).
The Sidecar is not starting with: No API token was configured.
- Not sure if we want to automate this.
If yes, we also need to rename the Sidecar tests in https://github.com/Graylog2/graylog2-cookbook/tree/master/spec/unit/recipes
collector-sidecar
-> graylog-sidecar
Fix some failing rspec tests.
@mariussturm Since I'm renaming the sidecar recipe, should I also bump the package version up to |
@juju2112 yes please, good idea! |
Update recipe version to 4.0.0.
@mariussturm There are two issues left with the rspec tests:
Based on reading the rspec docs, it seems like we are meant to stub out the data bag stuff in the rspec file. But I am not sure what the syntax is supposed to look like. There is a section on stubbing on the ChefSpec github README, but it does not look anything like our code. https://github.com/chefspec/chefspec#stubbing These errors don't seem to cause the rspec to fail, though.
So far, I am unable to get this error to change in any way. I've tried changing the Rspec really needs a debug mode. |
I think I'd rather leave automating that as a separate task. I could add the The sidecar recipe would need to hit the server api and create the token. It would need the credentials for the server, too. So, the recipe would need to pull the creds from the data bag. But if someone wanted to specify the token themselves, then it would need to use that instead and not go out and try to create it. |
Looked into the rspec errors, I think there is no way of testing the actual execution of a |
Okay, that makes sense. I'll update the rspec test. |
Oh, I see you already did that. Thanks! |
The Travis CI job seems to be broken. It's attached to travis-ci.org and would need to be migrated to travis-ci.com. But I don't have access to do that. I am looking at moving it it to either Github Actions or, failing that, our internal Jenkins. Perhaps it can run |
Especially since the integration tests are pretty heavy, maybe our Jenkins is a good choice. |
This looks really great now, good work @juju2112!!! If there is nothing more open I would merge this now, any objections? |
Yep, we're good merge now. Thanks for your help! |
This is a collection of various fixes and cleanup to ensure the Graylog cookbook runs properly.
Goals
Notes for Reviewers