What is CustomConfig?
Maestro applications are typically made up of several components, some containerized and some “native” components running directly on the operating system of your servers.
Examples of native components include databases and proxy servers, which are often impractical to containerize or that aren’t improved by doing so.
Naturally, these all have their own component-specific configuration files. Whenever you install or deploy a component, whether directly or via Maestro, that component will use a standard template for its configuration files.
CustomConfig is a tool that gives you access to the most commonly used of these configuration templates, and allows you to dynamically define your own values for those templates.
Components supported by CustomConfig
CustomConfig templates are available for the following components:
You can access and modify CustomConfig files in two different ways:
- Using the web-based UI
- Using CustomConfig git repository
CustomConfig git is a private git repository that allows you make changes to CustomConfig files using the well-known git tooling. You can find more information about CustomConfig git here.
CustomConfig uses the Liquid templating language developed by Shopify and used by many websites.
Liquid allows you to make your templates truly dynamic by incorporating features like variables, logical flow, and operators.
The team at Shopify has written two handy beginners guides to Liquid - one for designers and one for developers.
For most Maestro users the designer guide will probably be a better starting point since it is focussed on using Liquid syntax within existing templates rather than building new templates from scratch.
Patching configuration files
Every so often, Cloud 66 needs to update the base configuration files used by your application components.
When a patch is released, having customized configurations introduces complexities due to the differences in settings. (If you don’t have customized content, the patch will be automatically applied.)
If we cannot automatically apply a patch, you will be notified and provided with a patch archive. This contains two files - the updated configuration and a patch file.
Extract the contents of the archive and download your current configuration file from the Cloud 66 Dashboard. Then run the following command:
patch <current_configuration> -i <patch_file> -o merged_configuration
This will result in a merged_configuration file being created. Please ensure that there are no merge errors at this point.
Unfortunately, there are no generic answers for specific configuration issues, so it is your responsibility to ensure that the new file conforms to your requirements.
If there are no merge errors, you can copy and paste the contents of the merged_template into CustomConfig and commit it.
Failure to apply configuration updates may lead to unexpected behaviour by your server(s) and application(s).