forked from RedHatInsights/compliance-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(config): RHICOMPL-1894 Kafka config read from Settings
- Loading branch information
Showing
7 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Racecar.configure do |config| | ||
config.log_level = 'info' | ||
config.group_id_prefix = 'compliance' | ||
|
||
config.security_protocol = Settings.kafka.security_protocol | ||
config.ssl_ca_location = Settings.kafka.ssl_ca_location | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# These config values will be shared by all environments but can be overridden. | ||
common: &common | ||
client_id: "compliance_backend" | ||
brokers: | ||
<% Settings.kafka.brokers.split(',').each do |broker| %> | ||
- <%= broker %> | ||
<% end %> | ||
|
||
# By default, kafka's container port 9092 is proxied to 2902 | ||
# in insights-upload | ||
development: | ||
<<: *common | ||
brokers: | ||
- <%= ENV["KAFKAMQ"] %> | ||
|
||
test: | ||
<<: *common | ||
brokers: | ||
- <%= ENV["KAFKAMQ"] %> | ||
|
||
production: | ||
<<: *common | ||
brokers: | ||
- <%= ENV["KAFKAMQ"] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters