mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 14:36:20 -02:30
download: define utility variables (#13521)
local_release_dir has insufficient nuances, as it needs to handle several cases, - where to put downloaded artifacts - where to search for when installing artifacts - where to search for when using artifacts (passing them via lookup to kubectl stdin for instance) Furthermore, depending on how the user set up download delegation, the value we want can be on the host the tasks is executing, on the delegated hosts, etc. Define variables on top of local_release_dir for differents contexts, handling which host context to use depending on `download_delegate`. Mostly, this boils down to choosing the correct `host` for hostvars[host]['local_release_dir'].
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
local_release_dir: /tmp/releases
|
||||
download_cache_dir: /tmp/kubespray_cache
|
||||
|
||||
# If this is true, debug information will be displayed but
|
||||
|
||||
Reference in New Issue
Block a user