diff --git a/assets/runtime/functions.sh b/assets/runtime/functions.sh index 216ef9a..b5c744f 100755 --- a/assets/runtime/functions.sh +++ b/assets/runtime/functions.sh @@ -310,6 +310,21 @@ ${SALT_LOGS_DIR}/salt/key { notifempty } EOF + + if [[ "${SALT_API_SERVICE_ENABLED}" == true ]]; then + # configure salt-api log rotation + cat >> /etc/logrotate.d/salt <