Werk #7766: Raw Edition: Fix missing default ruleset and automation user

Component Setup
Title Raw Edition: Fix missing default ruleset and automation user
Date Jun 6, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When creating a new site with Checkmk Raw Edition 1.6.0b1 the sample configuration could not be created correctly. It was missing the empty sample Event Console rule pack and the builtin "automation" user.

In the moment this happens an error like this is visible in var/log/web.log:

UnboundLocalError: local variable 'cmk' referenced before assignment

To the list of all Werks