Project

General

Profile

« Previous | Next » 

Revision f34e9013

Added by Quirin Pamp almost 6 years ago

Fixes #23677 - Add additional config options to foreman-debug

Allows for full control of upload behaviour of foreman-debug via the
config file. The following new variables are introduced: UPLOAD_URL,
UPLOAD_CMD, UPLOAD_USAGE_MSG, UPLOAD_UNSET_MSG, UPLOAD_SUCCESS_MSG,
and UPLOAD_FAIL_MSG.

View differences:

config/foreman-debug.conf
# Do not create tarballs (0 or 1)
#NOTAR=0
# Maximum lines to keep for files (integer)
#MAXLINES=8000
# Maximum size for output files in bytes (integer)
#MAXSIZE=10485760 # 10 MB
# Compress program to pipe the tarball through (string)
#COMPRESS=
......
# Permanently disable upload feature (0 or 1)
#UPLOAD_DISABLED=0
# URL of the upload location (string)
#UPLOAD_URL='rsync://theforeman.org/debug-incoming'
# The full upload command in strict quotes (string)
#UPLOAD_CMD='rsync "${TARBALL}" "${UPLOAD_URL}"'
# Additional help message for when uploads are not disabled (UPLOAD_DISABLED=0) (multi line string)
#UPLOAD_USAGE_MSG="\
#Add your custom message here."
# Message displayed at the end if neither UPLOAD nor UPLOAD_DISABLED is set (multi line string)
#UPLOAD_UNSET_MSG="\
#Add your custom message here."
# Message when an upload was successfull (multi line string)
# note: will be appended with "$(basename ${TARBALL})\n"
#UPLOAD_SUCCESS_MSG="\
#Add your custom message here."
# Message when an upload was not successfull (multi line string)
#UPLOAD_FAIL_MSG="\
#Add your custom message here."
# Tokens that are fileted out (shell array)
#FILTER_WORDS=(pass password token key)

Also available in: Unified diff