-
Notifications
You must be signed in to change notification settings - Fork 9
Upgrading to 0.8.0
The meta.json file is no longer supported. You need to provide a template.conf file instead, which uses HOCON syntax instead of JSON. However, JSON is a subset of HOCON so you don't have to change the content of the file, just rename it to template.conf and you're good to go.
As we are changing the way templates are rendered, supporting different parameter types and Jinja2-like syntax using Jinjava, the following breaking changes happened:
- It is now mandatory to specify every parameter and at least its type in the
template.conf. - All parameter identifiers have to be valid in Jinjava, i.e.
my-parameterwill be interpreted asmyminusparameter.
Thus, old instances which have been created from templates without explicit parameter types in template.conf have to be converted. You can use script/instances-0.7.0-to-0.8.0.py to upgrade those legacy instances and script/templates-0.7.0-to-0.8.0.py to upgrade templates, respectively. The script also converts variables with dashes to underscores. Please create a back-up of your files before running the scripts. Keep in mind that those scripts only work for the filesystem instance storage.
-
broccoli.auth.session.allowMultiLoginis now called
broccoli.auth.session.allow-multi-login -
broccoli.auth.allowedFailedLoginsis now called
broccoli.auth.allowed-failed-logins -
broccol.auth.conf.accounts[].instanceRegexis now called
broccol.auth.conf.accounts[].instance-regex
It is possible to set Jinjava config settings through Broccoli. The default values are kept the same as in Jinjava, unless stated otherwise. For documentation on those parameters please refer to the original project https://github.com/HubSpot/jinjava.
-
broccoli.templates.jinjava.trim-blocks(defaults tofalse) -
broccoli.templates.jinjava.lstrip-blocks(defaults tofalse) -
broccoli.templates.jinjava.max-render-depth(defaults to10) -
broccoli.templates.jinjava.read-only-resolver(defaults totrue) -
broccoli.templates.jinjava.enable-recursive-macro-calls(defaults tofalse) -
broccoli.templates.jinjava.fail-on-unknown-tokens(defaults totrue) -
broccoli.templates.jinjava.max-output-size(defaults to0) -
broccoli.templates.jinjava.nested-interpretation-enabled(defaults totrue)