forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SLES15 enablement * fix: set ansible_user depending on OS * fix: proper vars path * fix: rename SLES distribution file * fix: read distribution vars dynamically with include_vars * fix: keep original behaviour for installing the stack on Debian * fix: set vars correctly * chore: debug ansible user * Update .ci/.e2e-tests.yaml Co-authored-by: Victor Martinez <[email protected]> * Update .ci/ansible/vars/SLES.yml Co-authored-by: Adam Stokes <[email protected]> * Update .ci/ansible/playbook.yml Co-authored-by: Victor Martinez <[email protected]> * Fix package install for distro, update include_vars for all tasks Signed-off-by: Adam Stokes <[email protected]> * fix path to vars Signed-off-by: Adam Stokes <[email protected]> * try with ansible_playbook_vars_root Signed-off-by: Adam Stokes <[email protected]> * try var_files Signed-off-by: Adam Stokes <[email protected]> * typo Signed-off-by: Adam Stokes <[email protected]> * use full path and fix quoting Signed-off-by: Adam Stokes <[email protected]> * use include_vars Signed-off-by: Adam Stokes <[email protected]> * make include_vars first in task list for each block Signed-off-by: Adam Stokes <[email protected]> * dont include_vars on localhost execution Signed-off-by: Adam Stokes <[email protected]> * remove conflicting statements Signed-off-by: Adam Stokes <[email protected]> * have e2e-tests.yaml drive the login information Signed-off-by: Adam Stokes <[email protected]> * fix update cache on debian based systems Signed-off-by: Adam Stokes <[email protected]> * fix permission on output directory Signed-off-by: Adam Stokes <[email protected]> * fix group ownership in create test script Signed-off-by: Adam Stokes <[email protected]> * better os detection in ansible Signed-off-by: Adam Stokes <[email protected]> * fix chown in jenkinsfile Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> Co-authored-by: Adam Stokes <[email protected]> Co-authored-by: Victor Martinez <[email protected]>
- Loading branch information
1 parent
d1f1c28
commit 199ceb3
Showing
8 changed files
with
80 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,46 @@ | ||
--- | ||
- name: Update cache | ||
shell: | | ||
sudo apt-get update | ||
- name: Install dependencies | ||
ansible.builtin.package: | ||
- name: Install dependencies (Debian/Ubuntu) | ||
apt: | ||
name: | ||
- rsync | ||
- wget | ||
- build-essential | ||
state: latest | ||
use: apt | ||
update_cache: yes | ||
register: package_install_res | ||
retries: 5 | ||
until: package_install_res is success | ||
when: ansible_pkg_mgr == 'apt' or ansible_distribution in ["Debian", "Ubuntu"] | ||
|
||
- name: Install dependencies (SUSE) | ||
zypper: | ||
name: | ||
- autoconf | ||
- bison | ||
- flex | ||
- gcc | ||
- gcc-c++ | ||
- kernel-default-devel | ||
- make | ||
- m4 | ||
- rsync | ||
- wget | ||
state: present | ||
when: ansible_pkg_mgr == 'zypper' or ansible_os_family == "Suse" | ||
|
||
- name: Install dependencies (CentOS) | ||
ansible.builtin.package: | ||
name: | ||
- autoconf | ||
- bison | ||
- flex | ||
- gcc | ||
- gcc-c++ | ||
- kernel-devel | ||
- make | ||
- m4 | ||
- patch | ||
- rsync | ||
- wget | ||
state: latest | ||
when: ansible_distribution in ["Fedora", "RedHat", "CentOS"] |
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