Skip to content
This repository was archived by the owner on Mar 5, 2018. It is now read-only.

Environment variables

Jonathan Dowland edited this page Jul 19, 2016 · 2 revisions

There are two main types of environment variables in CCT

YAML file Environment

These variables are defined in YAML files containing configuration instructions. You can read more about them in Intruction File format

Process environment (like $HOME, $PATH)

These variables are read from the process running cct. You can reference them using a $ sign same as yaml variables and these variables have top priority.

So $FOO variable is resolved in a following way:

  1. if there is $FOO variable defined for the cct process it will be used
  2. if there is no process variable $FOO the YAML file is check for a module variable $FOO and its used
  3. if there is no $FOO process variable nor module $FOO variable a change yaml file $FOO variable is used
  4. if neither of previous step is true $FOO is passed to module as a text $FOO

Clone this wiki locally