-
Notifications
You must be signed in to change notification settings - Fork 10
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
kafka producer settings were added #80
base: develop
Are you sure you want to change the base?
Conversation
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.
See file comments - nothing major.
Also, can you make a fixture cookbook that sets up a very simple kafka broker cluster, then also make a recipe in the onms_lwrp_test
fixture cookbook that manipulates the required attributes to work with that broker cluster? Then add a kitchen suite that uses those recipes and write an inspec test that verifies that kafka is running and the feature is installed and the collection set topic exists and that opennms is a producer on the configured topic. If you can't get the suite to run in Windows we can find another place to run it.
attributes/default.rb
Outdated
@@ -2130,3 +2130,4 @@ | |||
'topologyEdgeTopic' => 'edges', 'metricTopic' => 'metrics', 'eventFilter' => '', 'alarmFilter' => '', 'forward.metrics' => false, | |||
'nodeRefreshTimeoutMs' => 300000, 'alarmSyncIntervalMs' => 300000, 'suppressIncrementalAlarms' => true, 'kafkaSendQueueCapacity' => 1000, | |||
'startAlarmSyncWithCleanState' => false} | |||
default['opennms']['kafka']['producer'] ['client'] = {} |
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.
I think there's an extra space here? and maybe add a short comment above explaining what the attribute does
recipes/kafka_producer.rb
Outdated
owner 'root' | ||
group 'root' | ||
mode 00664 | ||
only_if { mv.to_i >= 26} |
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.
this resource and the other templates you added would run on anything >= 26 but a template only exists in 26 - either change the guard or add more templates please
Please review.
Tests were added, but i haven't changes the .kitchen.yml file as i don't know how to change it correctly.