kayobe/ansible/group_vars/all/globals
Mark Goddard 8c6ca86090 Fix defaults for environment variable lookups
The env lookup plugin returns None if the environment variable is not
defined, which does not count as undefined. This means the default filter
will not replace the value. We pass true as the second argument to default
in order to interpret the value as a boolean when determining if it is
defined.
2017-08-07 19:55:33 +00:00

28 lines
928 B
Plaintext

---
# Kayobe global configuration.
###############################################################################
# Path configuration.
# Path to Kayobe configuration directory.
kayobe_config_path: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') | default('/etc/kayobe', true) }}"
# Path in which to store data locally.
base_path: "{{ lookup('env', 'KAYOBE_BASE_PATH') | default('/opt/kayobe', true) }}"
# Path in which to cache downloaded images.
image_cache_path: "{{ base_path ~ '/images' }}"
# Path on which to checkout source code repositories.
source_checkout_path: "{{ base_path ~ '/src' }}"
# Path on which to create python virtualenvs.
virtualenv_path: "{{ base_path ~ '/venvs' }}"
###############################################################################
# User configuration.
# User with which to access seed and controller nodes. This user will be
# created if it does not exist.
kayobe_ansible_user: "stack"