Skip to content

Commit

Permalink
Merge pull request #136 from redBorder/feature/#16519_integrate_rb_ale
Browse files Browse the repository at this point in the history
Feature/#16519 integrate rb ale
  • Loading branch information
nilsver authored May 16, 2024
2 parents 70dd4ac + 6692d79 commit 6911318
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@
default["redborder"]["memory_assigned"] = {}

# geoip has been removed because is not a service
default["redborder"]["services_group"]["full"] = %w[consul chef-server zookeeper memcached rsyslog kafka logstash s3
postgresql redborder-postgresql nginx webui druid-broker
druid-historical druid-realtime druid-coordinator f2k
redborder-monitor pmacct redborder-dswatcher
redborder-events-counter http2k
]
default["redborder"]["services_group"]["full"] = %w[
consul chef-server zookeeper memcached rsyslog kafka logstash s3
redborder-ale postgresql redborder-postgresql nginx webui druid-broker
druid-historical druid-realtime druid-coordinator f2k redborder-monitor
pmacct redborder-dswatcher redborder-events-counter http2k
]

default["redborder"]["services_group"]["custom"] = []
default["redborder"]["services_group"]["core"] = %w[consul zookeeper druid-coordinator druid-overlord hadoop-resourcemanager] #consul server
Expand Down Expand Up @@ -170,7 +170,7 @@
default["redborder"]["services"]["redborder-events-counter"] = false
default["redborder"]["services"]["rsyslog"] = true
default["redborder"]["services"]["redborder-nmsp"] = false
default["redborder"]["services"]["redborder-ale"] = false
default["redborder"]["services"]["redborder-ale"] = true
default["redborder"]["services"]["n2klocd"] = false
default["redborder"]["services"]["radiusd"] = false

Expand Down
6 changes: 6 additions & 0 deletions resources/templates/default/redborder-manager.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ Defaults:hadoop !requiretty
redborder ALL= NOPASSWD:SETENV: /usr/lib/redborder/bin/rb_wakeup_chef.sh, /opt/rb/bin/rb_update_geoip, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh -c, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh -n *, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh
redborder-monitor ALL= NOPASSWD: /usr/lib/redborder/bin/rb_get_sensor.sh, /usr/lib/redborder/bin/cachestat.sh, /bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 *, /usr/lib/redborder/bin/rb_mem.sh *
webui ALL= NOPASSWD:SETENV: /usr/lib/redborder/bin/rb_get_raw_vault.sh *, /usr/lib/redborder/bin/rb_update_geodb_cookbook.sh, /usr/lib/redborder/bin/rb_update_geoip, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef -c, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef -n *, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef, /usr/lib/redborder/bin/rb_reassign_partitions.sh -d -e, /usr/lib/redborder/bin/rb_pcp.sh up *, /usr/lib/redborder/bin/rb_pcp.sh recovery *, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_pcp.sh status, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_get_zkinfo.sh, /bin/env BOOTUP=none /usr/lib/redborder/bin/rb_create_bulkstats_columns.sh *, /usr/lib/redborder/bin/rb_create_rsa.sh *
<%="
redborder-ale
ALL=NOPASSWD:SETENV:
/usr/lib/rvm/rubies/ruby-2.7.5/bin/ruby,
/var/rb-ale/bin/rb_ale.rb
".gsub(/\s+/, ' ').strip %>

0 comments on commit 6911318

Please sign in to comment.