2015-07-09 16:29:06 +02:00
|
|
|
---
|
|
|
|
|
driver:
|
|
|
|
|
name: docker
|
|
|
|
|
|
2020-11-17 18:17:40 +01:00
|
|
|
transport:
|
|
|
|
|
max_ssh_sessions: 6
|
|
|
|
|
|
2015-07-09 16:29:06 +02:00
|
|
|
provisioner:
|
|
|
|
|
name: ansible_playbook
|
|
|
|
|
hosts: localhost
|
|
|
|
|
roles_path: ../
|
2019-05-09 09:06:02 +02:00
|
|
|
require_ansible_repo: true
|
2017-08-15 13:25:24 +01:00
|
|
|
require_ansible_omnibus: false
|
|
|
|
|
require_ansible_source: false
|
2016-03-18 21:42:32 +00:00
|
|
|
http_proxy: <%= ENV['HTTP_PROXY'] %>
|
|
|
|
|
https_proxy: <%= ENV['HTTPS_PROXY'] %>
|
|
|
|
|
no_proxy: localhost,127.0.0.1
|
2017-08-15 13:56:24 +01:00
|
|
|
ignore_extensions_from_root: [".git",".idea",".kitchen.yml"]
|
|
|
|
|
ignore_paths_from_root: [".git",".idea",".kitchen"]
|
2018-01-22 15:04:04 +01:00
|
|
|
<% if ENV['VERSION'] %>
|
|
|
|
|
attributes:
|
|
|
|
|
extra_vars:
|
|
|
|
|
es_major_version: "<%= ENV['VERSION'] %>"
|
2019-05-09 09:06:02 +02:00
|
|
|
<% if ENV['VERSION'] == '6.x' %>
|
2022-01-13 15:09:35 -07:00
|
|
|
es_version: '6.8.23'
|
2018-01-22 15:04:04 +01:00
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
2015-07-09 16:29:06 +02:00
|
|
|
|
|
|
|
|
platforms:
|
|
|
|
|
- name: ubuntu-14.04
|
|
|
|
|
driver_config:
|
2018-11-26 15:26:57 +01:00
|
|
|
image: ubuntu:14.04
|
2015-07-09 16:29:06 +02:00
|
|
|
privileged: true
|
2015-07-15 12:27:48 +02:00
|
|
|
provision_command:
|
2019-05-09 09:06:02 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q software-properties-common && add-apt-repository -y ppa:ansible/ansible && add-apt-repository -y ppa:openjdk-r/ppa
|
|
|
|
|
- apt-get update -q && apt-get -y -q install ansible openjdk-8-jre python-jmespath
|
2018-11-26 15:26:57 +01:00
|
|
|
- locale-gen en_US.UTF-8 && localedef -i en_US -c -f UTF-8 en_US.UTF-8
|
2015-07-13 12:59:49 +02:00
|
|
|
use_sudo: false
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-01-31 14:29:49 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2018-06-19 10:39:16 +02:00
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
2017-01-05 11:02:33 +00:00
|
|
|
- name: ubuntu-16.04
|
|
|
|
|
driver_config:
|
2018-11-26 15:26:57 +01:00
|
|
|
image: ubuntu:16.04
|
2017-01-05 11:02:33 +00:00
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
2019-05-09 09:06:02 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q iproute locales software-properties-common && add-apt-repository -y ppa:ansible/ansible
|
2019-06-03 14:18:09 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q ansible python-jmespath
|
2018-11-26 15:26:57 +01:00
|
|
|
- locale-gen en_US.UTF-8 && localedef -i en_US -c -f UTF-8 en_US.UTF-8
|
|
|
|
|
use_sudo: false
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-11-26 15:26:57 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
|
|
|
|
run_command: "/sbin/init"
|
|
|
|
|
- name: ubuntu-18.04
|
|
|
|
|
driver_config:
|
|
|
|
|
image: ubuntu:18.04
|
|
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
2021-04-12 15:57:26 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q ansible iproute2 python-jmespath
|
2017-01-05 11:02:33 +00:00
|
|
|
use_sudo: false
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-01-31 14:29:49 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2018-06-19 10:39:16 +02:00
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
2017-01-05 11:02:33 +00:00
|
|
|
run_command: "/sbin/init"
|
2021-05-10 13:17:39 +01:00
|
|
|
- name: ubuntu-20.04
|
|
|
|
|
driver_config:
|
|
|
|
|
image: ubuntu:20.04
|
|
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
|
|
|
|
- apt-get update -q && apt-get install -y -q ansible gpg iproute2 python3-jmespath
|
|
|
|
|
use_sudo: false
|
|
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
|
|
|
|
run_command: "/sbin/init"
|
2015-07-09 16:29:06 +02:00
|
|
|
- name: debian-8
|
|
|
|
|
driver_config:
|
2018-11-26 15:26:57 +01:00
|
|
|
image: debian:8
|
|
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
2019-05-09 09:06:02 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q gnupg2 python-jmespath
|
2019-04-29 11:07:59 +02:00
|
|
|
- echo "deb http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
|
|
|
|
|
- echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf
|
2018-11-26 15:26:57 +01:00
|
|
|
- apt-get update && apt-get -y install -t jessie-backports openjdk-8-jre-headless
|
2019-05-09 09:06:02 +02:00
|
|
|
- echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" > /etc/apt/sources.list.d/ansible.list
|
|
|
|
|
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
|
|
|
|
- apt-get update -q && apt-get install -y -q ansible
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-11-26 15:26:57 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
|
|
|
|
use_sudo: false
|
|
|
|
|
run_command: "/sbin/init"
|
|
|
|
|
- name: debian-9
|
|
|
|
|
driver_config:
|
|
|
|
|
image: debian:9
|
2015-07-09 16:29:06 +02:00
|
|
|
privileged: true
|
2015-11-24 17:32:36 +00:00
|
|
|
provision_command:
|
2019-05-09 09:06:02 +02:00
|
|
|
- apt-get update -q && apt-get install -y -q gnupg2 python-jmespath systemd-sysv
|
|
|
|
|
- echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" > /etc/apt/sources.list.d/ansible.list
|
|
|
|
|
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
|
|
|
|
- apt-get update -q && apt-get install -y -q ansible
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-01-31 14:29:49 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2018-06-19 10:39:16 +02:00
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
2015-07-13 12:59:49 +02:00
|
|
|
use_sudo: false
|
2015-12-21 14:05:00 +01:00
|
|
|
run_command: "/sbin/init"
|
2020-06-15 16:03:14 +02:00
|
|
|
- name: debian-10
|
|
|
|
|
driver_config:
|
|
|
|
|
image: debian:10
|
|
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
|
|
|
|
- apt-get update -q && apt-get install -y -q gnupg2 python-jmespath systemd-sysv
|
|
|
|
|
- echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" > /etc/apt/sources.list.d/ansible.list
|
|
|
|
|
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
|
|
|
|
- apt-get update -q && apt-get install -y -q ansible
|
|
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
|
|
|
|
use_sudo: false
|
|
|
|
|
run_command: "/sbin/init"
|
2015-07-09 16:29:06 +02:00
|
|
|
- name: centos-7
|
|
|
|
|
driver_config:
|
2018-11-26 15:26:57 +01:00
|
|
|
image: centos:7
|
2015-07-09 16:29:06 +02:00
|
|
|
provision_command:
|
2018-11-26 15:26:57 +01:00
|
|
|
- yum -y install epel-release
|
2019-05-09 09:06:02 +02:00
|
|
|
- yum -y install ansible iproute python2-jmespath
|
2019-06-03 14:18:09 +02:00
|
|
|
volume:
|
2018-01-31 14:29:49 +01:00
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2018-06-19 10:39:16 +02:00
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
2020-06-26 09:42:23 +02:00
|
|
|
run_command: "/usr/sbin/init"
|
|
|
|
|
privileged: true
|
|
|
|
|
use_sudo: false
|
2020-11-17 18:43:41 +00:00
|
|
|
- name: centos-8
|
|
|
|
|
driver_config:
|
|
|
|
|
image: centos:8
|
|
|
|
|
provision_command:
|
|
|
|
|
- yum -y install epel-release
|
|
|
|
|
- yum -y install ansible iproute python3-jmespath
|
|
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
|
|
|
|
run_command: "/usr/sbin/init"
|
|
|
|
|
privileged: true
|
|
|
|
|
use_sudo: false
|
2020-06-26 09:42:23 +02:00
|
|
|
- name: amazonlinux-2
|
|
|
|
|
driver_config:
|
|
|
|
|
image: amazonlinux:2
|
|
|
|
|
provision_command:
|
|
|
|
|
- yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
|
|
|
- yum -y install ansible iproute python2-jmespath
|
|
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
|
|
|
|
- /etc # This fixes certain java file actions that check the mount point. Without this adding users fails for some docker storage drivers
|
2015-09-16 14:16:42 +02:00
|
|
|
run_command: "/usr/sbin/init"
|
2015-07-09 16:29:06 +02:00
|
|
|
privileged: true
|
2015-07-13 12:59:49 +02:00
|
|
|
use_sudo: false
|
2015-07-09 16:29:06 +02:00
|
|
|
|
|
|
|
|
suites:
|
2021-02-04 11:19:00 +01:00
|
|
|
- name: custom-config
|
|
|
|
|
provisioner:
|
|
|
|
|
idempotency_test: true
|
|
|
|
|
playbook: test/integration/custom-config.yml
|
|
|
|
|
- name: default
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/default.yml
|
|
|
|
|
idempotency_test: true
|
|
|
|
|
- name: license
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/license.yml
|
|
|
|
|
idempotency_test: true
|
2018-06-19 10:39:16 +02:00
|
|
|
- name: oss
|
2015-07-16 15:56:09 +02:00
|
|
|
provisioner:
|
2017-03-16 21:06:17 +00:00
|
|
|
idempotency_test: true
|
2018-06-19 10:39:16 +02:00
|
|
|
playbook: test/integration/oss.yml
|
2021-02-04 11:19:00 +01:00
|
|
|
- name: oss-to-default-upgrade
|
2015-10-22 19:09:53 +01:00
|
|
|
provisioner:
|
2021-02-04 11:19:00 +01:00
|
|
|
playbook: test/integration/oss-to-default-upgrade.yml
|
2018-06-19 10:39:16 +02:00
|
|
|
idempotency_test: false
|
2021-02-04 11:19:00 +01:00
|
|
|
- name: oss-upgrade
|
2015-10-22 19:09:53 +01:00
|
|
|
provisioner:
|
2021-02-04 11:19:00 +01:00
|
|
|
playbook: test/integration/oss-upgrade.yml
|
2018-06-19 10:39:16 +02:00
|
|
|
idempotency_test: false
|
2021-02-04 11:19:00 +01:00
|
|
|
- name: security
|
2016-07-22 23:44:27 +01:00
|
|
|
provisioner:
|
2021-02-04 11:19:00 +01:00
|
|
|
playbook: test/integration/security.yml
|
2017-08-20 10:30:39 -04:00
|
|
|
idempotency_test: true
|
2021-02-04 11:19:00 +01:00
|
|
|
- name: trial
|
2017-08-20 10:30:39 -04:00
|
|
|
provisioner:
|
2021-02-04 11:19:00 +01:00
|
|
|
playbook: test/integration/trial.yml
|
|
|
|
|
idempotency_test: false # es_xpack_trial is not idempotent currently
|
|
|
|
|
- name: upgrade
|
2019-10-18 17:56:55 +01:00
|
|
|
provisioner:
|
2021-02-04 11:19:00 +01:00
|
|
|
playbook: test/integration/upgrade.yml
|
2019-10-18 17:56:55 +01:00
|
|
|
idempotency_test: false
|