Add file name/path to log_size_limit message

This commit is contained in:
William Wernert
2021-02-24 12:54:14 -05:00
parent ac6f1df86f
commit ece79379a5

View File

@@ -130,6 +130,7 @@ check_log_size_limit() {
wait_for_enter=true
echo "[INFO] The value of log_size_limit in the minion pillars may be incorrect."
echo " -> We recommend checking and adjusting the values as necessary."
echo " -> Minion pillar directory: /opt/so/saltstack/local/pillar/minions/"
else
local minion_id
minion_id=$(lookup_salt_value "id" "" "grains")
@@ -172,6 +173,7 @@ check_log_size_limit() {
wait_for_enter=true
echo "[WARNING] The value of log_size_limit (${current_limit}) does not match the recommended value of ${new_limit}."
echo " -> We recommend checking and adjusting the value as necessary."
echo " -> File: /opt/so/saltstack/local/pillar/minions/${minion_id}.sls"
fi
if [[ $wait_for_enter == true ]]; then