Skip to content

Commit

Permalink
Merge pull request #153 from redBorder/development
Browse files Browse the repository at this point in the history
Release 2.0.1
  • Loading branch information
JPeraltaNic authored Jun 13, 2024
2 parents ccf75d8 + 5283cda commit 6fb3728
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
cookbook-rb-manager CHANGELOG
===============

## 2.0.1

- Miguel Alvarez
- [d6ecac2][e748afe][2405993] Fix lint issues
- [292288d] Add hosts in node data
- [fd63ad2] Fix prepare and configure
- [ac54c02] Proper use of s3 hosts
- [f08e447] Configure minio nodes and load balancer
- [78f1562][4db8fa1][e101c2d][3220e71][4ec77f8][d89bd26][ed91ff3] Updates
- [6e7680a] Delete resources/templates/default/minio.erb

## 2.0.0

- Miguel Álvarez
Expand Down
1 change: 1 addition & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

# webui
default['redborder']['webui']['port'] = 8001
default['redborder']['webui']['hosts'] = []

# memcached
default['redborder']['memcached']['elasticache'] = false
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures redborder manager'
version '2.0.0'
version '2.0.1'

depends 'rb-common'
depends 'chef-server'
Expand Down
1 change: 1 addition & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
end

webui_config 'Configure Nginx WebUI' do
hosts node['redborder']['webui']['hosts']
cdomain node['redborder']['cdomain']
port node['redborder']['webui']['port']
if manager_services['webui'] && manager_services['nginx']
Expand Down
10 changes: 7 additions & 3 deletions resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,19 @@
# zk_hosts = node['redborder']['managers_per_services']['zookeeper'].map {|z| '#{z}.node:#{zk_port}'}.join(',')
node.default['redborder']['zookeeper']['zk_hosts'] = "zookeeper.service.#{node['redborder']['cdomain']}:#{node['redborder']['zookeeper']['port']}"

# Set all nodes with s3 configured (nginx load balancer)
s3_hosts = node['redborder']['managers_per_services']['s3'].map { |z| "#{z}.node:9000" }
node.default['redborder']['s3']['s3_hosts'] = s3_hosts
# set webui hosts
webui_hosts = node['redborder']['managers_per_services']['webui'].map { |z| "#{z}.node" }
node.default['redborder']['webui']['hosts'] = webui_hosts

# set kafka host index if kafka is enabled in this host
if node['redborder']['managers_per_services']['kafka'].include?(node.name)
node.default['redborder']['kafka']['host_index'] = node['redborder']['managers_per_services']['kafka'].index(node.name)
end

# Set all nodes with s3 configured (nginx load balancer)
s3_hosts = node['redborder']['managers_per_services']['s3'].map { |z| "#{z}.node:9000" }
node.default['redborder']['s3']['s3_hosts'] = s3_hosts

# set druid realtime partition id (its needed in cluster mode for druid brokers)
if node['redborder']['managers_per_services']['druid-realtime'].include?(node.name)
node.default['redborder']['druid']['realtime']['partition_num'] = node['redborder']['managers_per_services']['druid-realtime'].index(node.name)
Expand Down

0 comments on commit 6fb3728

Please sign in to comment.