Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 37ada4018cb37fdc9f1299d37a5eb4dc3f65840b
https://github.com/tribe29/checkmk/commit/37ada4018cb37fdc9f1299d37a5eb4dc3…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2019-11-19 (Tue, 19 Nov 2019)
Changed paths:
M tests/integration/livestatus/test_livestatus.py
Log Message:
-----------
Revert "Skip crash report tests again"
This reverts commit f1f53bdcc321dde848d5094fb126154a7172b3a3.
Commit: cb7bd65782bb7beb32aed07aae9c1f18a31f4d66
https://github.com/tribe29/checkmk/commit/cb7bd65782bb7beb32aed07aae9c1f18a…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2019-11-19 (Tue, 19 Nov 2019)
Changed paths:
A .werks/10199
Log Message:
-----------
10199 Bakery plugins must store configuration into yml_store
Previously the Bakery configured Windows Agent using <tt>check_mk.ini</tt>
configuration file: every script in <tt>enterprise/agents/bakery</tt>
directory
could write own configuration data into the own file. All those files had
been later gathered into one <tt>check_mk.ini</tt> configuration file.
Since this release the Bakery configures Windows Agent using only
<tt>check_mk.bakery.yml</tt>. All data located in the ini file will be
ignored.
To correctly configure Windows Agent you must use new parameter in your
<tt>bake_***</tt> function named <tt>yml_store</tt>. This
parameter has type
YamlStore and imported automatically from <tt>agent_bakery_plugins.py</tt>.
Now the configuration data of all plugins are stored in a standard Python
dictionary, which replicates the structure of the Windows Agent's
configuration file.
The following sample bake function sets the agent port setting for the Yaml
file. It receives the configured port for the agent configuration and creates
two entries, "enabled" and "port" in the "global" section.
C+:
def bake_agent_port(opsys, conf, conf_dir, plugins_dir, yml_store):
# ^^^^^^^^^
global_section = yml_store.make_section["global"] # mandatory to get dict
# ^^^^^^
global_section["enabled"] = True # mandatory also
global_section["port"] = conf # configures the Agent port
# ^^^^ ^^^^
C-:
The function above creates the following definitions in the
<tt>check_mk.bakery.yml</tt>:
C+:
global:
enabled: True
port: 6551
C-:
Change-Id: I94247b4530602a1bbf281e6df0a4beca78cc9bc7
Compare:
https://github.com/tribe29/checkmk/compare/7a79d03f0e14...cb7bd65782bb