Werk #16887: mk_job: MK_VARDIR defaults not being set in bakery

Component Checks & agents
Title mk_job: MK_VARDIR defaults not being set in bakery
Date Jul 26, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p32 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Due to a different way to set in MK_VARDIR in mk_job, default values would not be baked into mk_job and derivates. This change adds a replacement rule for the way MK_VARDIR gets assigned in mk_job and also separates assignment and export in order to avoid known problems with Solaris.

To the list of all Werks