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

kafka producer settings were added #80

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

ig-semenov
Copy link
Collaborator

@ig-semenov ig-semenov commented Jul 22, 2022

Please review.
Tests were added, but i haven't changes the .kitchen.yml file as i don't know how to change it correctly.

@ig-semenov ig-semenov requested a review from dschlenk July 22, 2022 19:18
Copy link
Owner

@dschlenk dschlenk left a 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.

@@ -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'] = {}
Copy link
Owner

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

owner 'root'
group 'root'
mode 00664
only_if { mv.to_i >= 26}
Copy link
Owner

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

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

Successfully merging this pull request may close these issues.

2 participants