Skip to content

Commit

Permalink
refactor for sudo rb-monitor in multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Apr 22, 2024
1 parent dae6980 commit 45bc464
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/templates/default/redBorder.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ redborder
/usr/lib/redborder/bin/rb_u2pcap.sh,
/usr/lib/redborder/bin/rb_update_redborder_rpms.sh -f
".gsub(/\s+/, ' ').strip %>
rb-monitor ALL= NOPASSWD: /usr/lib/redborder/bin/rb_get_perfmonitor_stats.sh, /usr/lib/redborder/bin/rb_get_sensor.sh, /usr/lib/redborder/bin/rb_get_pfring_stats.sh, /bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 kafka.<%= node["redborder"]["cdomain"] %>
<%="
rb-monitor
ALL= NOPASSWD:
/usr/lib/redborder/bin/rb_get_perfmonitor_stats.sh,
/usr/lib/redborder/bin/rb_get_sensor.sh,
/usr/lib/redborder/bin/rb_get_pfring_stats.sh,
/bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 kafka.#{["redborder"]["cdomain"]}
".gsub(/\s+/, ' ').strip %>

0 comments on commit 45bc464

Please sign in to comment.