diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index 32ca6a21..880f0458 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -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 @@ -101,30 +102,35 @@ 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]) @@ -132,12 +138,14 @@ 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 @@ -331,6 +339,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