Fixes #36767 - use runuser instead of su to run rake
foreman-rake is designed to be run as root (and switch to foreman) or byforeman directly. any other user can't use it as it is installed in sbinand the foreman user has no password set, making switching users as non...
Fixes #26194 - Silence ruby warnings for foreman-rake
This commit adds the `-W 0` to ruby for foreman-rake
This will silence warnings for ruby. We already use the productionrails environment, which prevents rails warnings, but we don't alterthe logging for ruby, so ruby warnings are still visible...
fixes #17011 - refactor BUNDLER_CMD in foreman-rake
Fixes #15684 - foreman-rake without options raise an error
Fixes #14541 - foreman-rake must preserve environment variables
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
fixes #11170 - pass quoted args through foreman-rake
Use the special "$@" to correctly pass quoted arguments throughforeman-rake, through su and to the underlying rake command. Ensuresthe JSON in this command is unharmed:
foreman-rake config -- -k trusted_puppetmaster_hosts -v '["foo.bar.com"]'...
fixes #2684 - add foreman-rake script to /usr/sbin