This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterise resource cache location (#39)
* Replace hard-coded resource cache location with variable * Update task names to reflect lack of hard-coding * Formatting * Add cache location var in all roles creating local resources
- Loading branch information
Showing
15 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
--- | ||
- name: Check if Kind {{ kind_version }} already downloaded | ||
stat: | ||
path: "{{ inventory_dir }}/.resources/kind-{{ kind_version }}" | ||
path: "{{ seldon_cache_directory }}/kind-{{ kind_version }}" | ||
register: kind_binary | ||
|
||
- name: "Create .resources directory if does not exist: {{ inventory_dir }}/.resources/" | ||
- name: "Create resources directory if does not exist: {{ seldon_cache_directory }}/" | ||
ansible.builtin.file: | ||
path: "{{ inventory_dir }}/.resources/" | ||
path: "{{ seldon_cache_directory }}/" | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Download Kind {{ kind_version }} binary | ||
shell: "curl -Lo kind-{{ kind_version }} {{ kind_url }}" | ||
args: | ||
chdir: "{{ inventory_dir }}/.resources" | ||
chdir: "{{ seldon_cache_directory }}" | ||
warn: false | ||
when: kind_binary.stat.exists == false | ||
|
||
- name: Make Kind {{ kind_version }} binary executable | ||
ansible.builtin.file: | ||
path: "{{ inventory_dir }}/.resources/kind-{{ kind_version }}" | ||
path: "{{ seldon_cache_directory }}/kind-{{ kind_version }}" | ||
state: file | ||
mode: '0755' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters