Skip to content

Commit

Permalink
Merge branch 'master' into feature/#18850_add_internal_virtual_ips
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezborder committed Dec 9, 2024
2 parents 564e6fc + 840b139 commit c5bd32f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 67 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-rb-manager CHANGELOG
===============

## 4.6.3

- Nils
- Add cookbook for firewall

## 4.6.2

- Juan Soto
Expand Down
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
default['redborder']['services']['snmp'] = true
default['redborder']['services']['webui'] = false
default['redborder']['services']['zookeeper'] = false
default['redborder']['services']['firewall'] = true

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['chef-server'] = ['opscode-erchef']
Expand Down Expand Up @@ -202,6 +203,7 @@
default['redborder']['systemdservices']['snmp'] = ['snmpd']
default['redborder']['systemdservices']['webui'] = ['webui']
default['redborder']['systemdservices']['zookeeper'] = ['zookeeper']
default['redborder']['systemdservices']['firewall'] = ['firewalld']

default['redborder']['manager']['balanced'] = [ { port: 443, protocol: 'tcp', name: 'redborder webui', service: 'webui', redirected_service: 'nginx', persistence_timeout: 9600 }, { port: 2055, protocol: 'udp', name: 'netflow,ipfix/sflow daemon', service: 'f2k', redirected_service: 'f2k', persistence_timeout: 30 }, { port: 6343, protocol: 'udp', name: 'sflow daemon', service: 'sfacctd', redirected_service: 'sfacctd', persistence_timeout: 30 }, { port: 9092, protocol: 'tcp', name: 'kafka', service: 'kafka', redirected_service: 'kafka', persistence_timeout: 30 } ]

Expand Down
62 changes: 0 additions & 62 deletions resources/libraries/open_kafka_port.rb

This file was deleted.

3 changes: 2 additions & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
maintainer_email '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures redborder manager'
version '4.6.2'
version '4.6.3'

depends 'rb-common'
depends 'chef-server'
Expand Down Expand Up @@ -47,3 +47,4 @@
depends 'keepalived'
depends 'mem2incident'
depends 'rb-ai'
depends 'rb-firewall'
10 changes: 10 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
retries 2
end

rb_firewall_config 'Configure Firewall' do
sync_ip node['ipaddress_sync']
ip_addr node['ipaddress']
if manager_services['firewall']
action :add
else
action :remove
end
end

consul_config 'Configure Consul Server' do
cdomain node['redborder']['cdomain']
dns_local_ip node['consul']['dns_local_ip']
Expand Down
4 changes: 0 additions & 4 deletions resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@

node.default[:ipaddress_sync] = ipaddress_sync

# Opens the kafka port for the IP of the IPS if in manager/ssh mode.
# If the manager has 2 or more interfaces.
open_ports_for_ips if ipaddress_sync != node['ip_address']

# get mac
mac_sync = `ip a | grep -w -B2 #{ipaddress_sync} | awk '{print toupper($2)}' | head -n 1 | tr -d '\n'`
node.default['mac_sync'] = mac_sync
Expand Down

0 comments on commit c5bd32f

Please sign in to comment.