Skip to content

Commit

Permalink
usr/bin/env is the new path for env. Refactor to make easy to read su…
Browse files Browse the repository at this point in the history
…doers
  • Loading branch information
ljblancoredborder committed Apr 22, 2024
1 parent 2675e3d commit fd280c5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion resources/templates/default/redborder-manager.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@ Defaults:webui !requiretty
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.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, /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 *
<%# To see it well, I put it in different lines%>
<%="
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,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh -c,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh -n *,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_wakeup_chef.sh,
/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 *,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_pcp.sh status,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_get_zkinfo.sh,
/usr/bin/env BOOTUP=none /usr/lib/redborder/bin/rb_create_bulkstats_columns.sh *,
/usr/lib/redborder/bin/rb_create_rsa.sh *
".gsub(/\s+/, ' ').strip %>

0 comments on commit fd280c5

Please sign in to comment.