Skip to content

Upgrading to 0.7.0

Aleksandr Sorokoumov edited this page Aug 22, 2017 · 9 revisions

Instance format

In Cluster Broccoli 0.7.0 the instance format has changed. To convert instances from older versions (0.5.0 and 0.6.0) you can use the the instances-0.6.0-to-0.7.0.sh upgrade script to upgrade the instance JSON files in your instance directory.

The script requires jq 1.5.

  1. nomad stop cluster-broccoli
  2. script/instances-0.6.0-to-0.7.0.sh /path/to/broccoli/instances
  3. nomad run cluster-broccoli.hcl

Docker folder paths

In the Docker production image the paths to templates and instances changed from /templates and /instances to /cluster-broccoli-dist/templates and /cluster-broccoli-dist/instances respectively.

Default parameter type

In the 0.7.0 release we introduced parameter types (#17). The default parameter type is string which means that all the parameters will be converted to valid JSON strings and therefore will break all existing templates. To make the new release backwards compatible, set broccoli.instances.parameters.defaultType to raw. For more details please look at the parameter types docs.

Clone this wiki locally