Add base_path variable to simplify configuration of paths
The base path defaults to /opt/kayobe. Also modifies the following default paths: Image cache: /opt/kayobe/images Source code: /opt/kayobe/src
This commit is contained in:
parent
e1b2730e85
commit
3eb7f686f9
@ -2,16 +2,22 @@
|
||||
# Kayobe global configuration.
|
||||
|
||||
###############################################################################
|
||||
# Miscellaneous configuration.
|
||||
# Path configuration.
|
||||
|
||||
# Path to Kayobe configuration directory.
|
||||
kayobe_config_path: "{{ lookup('env', 'KAYOBE_CONFIG_PATH') | default('/etc/kayobe') }}"
|
||||
|
||||
# Path in which to store data locally.
|
||||
base_path: "/opt/kayobe"
|
||||
|
||||
# Path in which to cache downloaded images.
|
||||
image_cache_path: "{{ ansible_user_dir ~ '/kayobe-image-cache' }}"
|
||||
image_cache_path: "{{ base_path ~ '/images' }}"
|
||||
|
||||
# Path on which to checkout source code repositories.
|
||||
source_checkout_path: "{{ ansible_user_dir ~ '/kayobe-source' }}"
|
||||
source_checkout_path: "{{ base_path ~ '/src' }}"
|
||||
|
||||
###############################################################################
|
||||
# User configuration.
|
||||
|
||||
# User with which to access seed and controller nodes. This user will be
|
||||
# created if it does not exist.
|
||||
|
@ -2,17 +2,23 @@
|
||||
# Kayobe global configuration.
|
||||
|
||||
###############################################################################
|
||||
# Miscellaneous configuration.
|
||||
# Path configuration.
|
||||
|
||||
# Path to Kayobe configuration.
|
||||
#kayobe_config_path:
|
||||
|
||||
# Path in which to store data locally.
|
||||
#base_path:
|
||||
|
||||
# Path in which to cache downloaded images.
|
||||
#image_cache_path:
|
||||
|
||||
# Path on which to checkout source code repositories.
|
||||
#source_checkout_path:
|
||||
|
||||
###############################################################################
|
||||
# User configuration.
|
||||
|
||||
# User with which to access seed and controller nodes. This user will be
|
||||
# created if it does not exist.
|
||||
#kayobe_ansible_user:
|
||||
|
Loading…
x
Reference in New Issue
Block a user