Cluster variables
During a cluster deployment, CCME creates files that contain a set of environment variables to describe
the environment in which the cluster has been deployed.
These files are located in /etc/ccme/
: ccme.env.sh
and ccme.env.yaml
. Their access mode is 0644
.
The ccme.env.sh
can be sourced to retrieve the environment variables within a Bash script with . /etc/ccme/ccme.env.sh
.
The ccme.env.yaml
can be loaded from an Ansible playbook with:
- name: Load local CCME environment variables
ansible.builtin.include_vars:
file: "/etc/ccme/ccme.env.yaml"
name: ccme_env_var
All variables start with the CCME_
prefix. If a variable is undefined, it is set to NONE