Skip to content

Commit

Permalink
Merge pull request #163 from obierlaire/var-copy-installer
Browse files Browse the repository at this point in the history
Variable to copy installer script instead of downloading it
  • Loading branch information
obierlaire authored Aug 18, 2022
2 parents b2072b7 + f09db32 commit 09bf023
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ The following variables are avaible:
- Default: docker.elastic.co
- `ece_docker_repository`: The docker repository in the given registry. This is only relevant if you have a private mirror
- Default: cloud-enterprise
- `ece_installer_url`: The location of the installation script. Can be a local file for offline installation.
- `ece_installer_url`: The url of the installation script to download.
- Default: `https://download.elastic.co/cloud/elastic-cloud-enterprise.sh`
- This will use the local script if existing in `/home/elastic/elastic-cloud-enterprise.sh`
- `ece_installer_path`: The location of the installation script on the controller machine. It will be copied to remote host.
- Default: left empty, it will download it from internet (cf. `ece_installer_url`)
- `docker_config`: If specified as a path to a docker config, copies it to the target hosts
- [Supported Docker Versions](https://www.elastic.co/guide/en/cloud-enterprise/2.7/ece-software-prereq.html#ece-linux-docker)
- `docker_version`: Last supported version on Centos 7/8 and RHEL 7/8 is 20.0, Ubuntu 16, Ubuntu 18 and SLES 12 is 19.03.
Expand Down
8 changes: 8 additions & 0 deletions tasks/ece-bootstrap/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
---
- name: Copy ece installer
copy:
src: "{{ ece_installer_path }}"
dest: /home/elastic/elastic-cloud-enterprise.sh
mode: 0755
when: ece_installer_path is defined

- name: Download ece installer
get_url:
url: "{{ ece_installer_url }}"
dest: /home/elastic/elastic-cloud-enterprise.sh
mode: 0755
when: ece_installer_path is not defined

- name: Ensure ~/.docker is present
file:
Expand Down

0 comments on commit 09bf023

Please sign in to comment.