Skip to content

Commit

Permalink
Merge branch 'master' into bufgix/15927_kafka_hosts_to_http2k
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Dec 18, 2023
2 parents 98813d0 + 071f55a commit ada5108
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packaging/rpm/cookbook-rb-manager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ esac
%doc

%changelog
* Fri Dec 15 2023 David Vanhoucke <[email protected]> - 1.6.2-1
- Add sync ip support for zookeeper, druid, memcached and postgresql
* Fri Dec 01 2023 Miguel Negrón <[email protected]> - 1.6.1-1
- Add sync ip support
* Fri Dec 01 2023 David Vanhoucke <[email protected]> - 1.6.0-1
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'All rights reserved'
description 'Installs/Configures redborder manager'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.6.1'
version '1.6.2'

depends 'chef-server'
depends 'zookeeper'
Expand Down
9 changes: 9 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
port node["zookeeper"]["port"]
memory node["redborder"]["memory_services"]["zookeeper"]["memory"]
hosts node["redborder"]["managers_per_services"]["zookeeper"]
ipaddress node["ipaddress_sync"]
action (manager_services["zookeeper"] ? [:add, :register] : [:remove, :deregister])
end

Expand Down Expand Up @@ -101,43 +102,50 @@

druid_coordinator "Configure Druid Coordinator" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-coordinator"]["memory"]
action (manager_services["druid-coordinator"] ? [:add, :register] : [:remove, :deregister])
end

druid_overlord "Configure Druid Overlord" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-overlord"]["memory"]
action (manager_services["druid-overlord"] ? [:add, :register] : [:remove, :deregister])
end

druid_broker "Configure Druid Broker" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-broker"]["memory"]
action (manager_services["druid-broker"] ? [:add, :register] : [:remove, :deregister])
end

druid_middlemanager "Configure Druid MiddleManager" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-middlemanager"]["memory"]
action (manager_services["druid-middlemanager"] ? [:add, :register] : [:remove, :deregister])
end

druid_historical "Configure Druid Historical" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-historical"]["memory"]
tier node["redborder"]["druid"]["historical"]["tier"]
action (manager_services["druid-historical"] ? [:add, :register] : [:remove, :deregister])
end

druid_realtime "Configure Druid Realtime" do
name node["hostname"]
ipaddress node["ipaddress_sync"]
memory_kb node["redborder"]["memory_services"]["druid-realtime"]["memory"]
action (manager_services["druid-realtime"] ? [:add, :register] : [:remove, :deregister])
end

memcached_config "Configure Memcached" do
memory node["redborder"]["memory_services"]["memcached"]["memory"]
ipaddress node["ipaddress_sync"]
action (manager_services["memcached"] ? [:add, :register] : [:remove, :deregister])
end

Expand Down Expand Up @@ -332,6 +340,7 @@

postgresql_config "Configure postgresql" do
cdomain node["redborder"]["cdomain"]
ipaddress node["ipaddress_sync"]
action (manager_services["postgresql"] and external_services["postgresql"] == "onpremise" ? [:add, :register] : [:remove, :deregister])
end

Expand Down

0 comments on commit ada5108

Please sign in to comment.