Commit bb467eac authored by Alain Takoudjou's avatar Alain Takoudjou

fix Monitor README: add missing information for instance template

parent 8800a96c
...@@ -12,13 +12,21 @@ Implementation : ...@@ -12,13 +12,21 @@ Implementation :
[buildout] [buildout]
extends = extends =
../../stack/monitor/buildout.cfg
... ...
../../stack/monitor/buildout.cfg
2/ In your instance.cfg file or instance template (instance-xxx.cfg.jinja2, ...),
Extend monitor template and a monitor-base to parts:
[buildout]
extends =
${monitor-template:rendered}
parts = parts =
... ...
monitor-base monitor-base
2/ In your instance.cfg file or instance template, override monitor configuration section to define your custom parameters. Override monitor configuration section to define your custom parameters.
[monitor-instance-parameter] [monitor-instance-parameter]
monitor-title = ${slap-configuration:instance-title} monitor-title = ${slap-configuration:instance-title}
...@@ -57,6 +65,9 @@ You don't need to define all parameters, you can only set what is required to be ...@@ -57,6 +65,9 @@ You don't need to define all parameters, you can only set what is required to be
- configuration-file-path: path of knowledge0 cfg file where instance configuration will be written. - configuration-file-path: path of knowledge0 cfg file where instance configuration will be written.
- interface-url: The URL of monitor web interface. This URL will be present in generated JSON files. - interface-url: The URL of monitor web interface. This URL will be present in generated JSON files.
NB: You should use double $ (ex: $${monitor-template:rendered}) instead of one $ in your instance template file if it's not a jinja template. See:
- Jinja template file exemple, use one $: https://lab.nexedi.com/nexedi/slapos/blob/master/software/slaprunner/instance-resilient-test.cfg.jinja2
- Non Jinja template file, use $$: https://lab.nexedi.com/nexedi/slapos/blob/master/software/slaprunner/instance.cfg
Add a promise Add a promise
------------- -------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment