2015-07-09 16:29:06 +02:00
|
|
|
---
|
|
|
|
|
driver:
|
|
|
|
|
name: docker
|
|
|
|
|
|
|
|
|
|
provisioner:
|
|
|
|
|
name: ansible_playbook
|
|
|
|
|
hosts: localhost
|
|
|
|
|
roles_path: ../
|
2017-08-15 13:25:24 +01:00
|
|
|
require_ansible_repo: false
|
|
|
|
|
require_ansible_omnibus: false
|
|
|
|
|
require_ansible_source: false
|
|
|
|
|
require_pip: true
|
2018-02-01 16:00:26 +01:00
|
|
|
ansible_version: 2.4.3.0
|
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'] %>"
|
2018-02-01 14:54:16 +01:00
|
|
|
<% if ENV['VERSION'] == '5.x' %>
|
2018-06-14 14:44:31 +02:00
|
|
|
es_version: '5.6.10'
|
2018-01-22 15:04:04 +01:00
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
2015-07-09 16:29:06 +02:00
|
|
|
|
2017-08-17 21:44:46 +01:00
|
|
|
transport:
|
|
|
|
|
max_ssh_sessions: 6
|
|
|
|
|
|
2015-07-09 16:29:06 +02:00
|
|
|
platforms:
|
|
|
|
|
- name: ubuntu-14.04
|
|
|
|
|
driver_config:
|
2016-04-15 23:17:10 +01:00
|
|
|
image: dliappis/ubuntu-devopsci:14.04
|
2015-07-09 16:29:06 +02:00
|
|
|
privileged: true
|
2015-07-15 12:27:48 +02:00
|
|
|
provision_command:
|
2015-07-15 14:28:19 +02:00
|
|
|
- apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:ansible/ansible
|
2018-06-13 11:13:22 +02:00
|
|
|
- apt-get update && apt-get -y -q install python-apt python-pycurl python-pip python-openssl
|
2018-06-13 17:32:55 +02:00
|
|
|
- pip install jmespath pyOpenSSL ndg-httpsclient
|
2017-08-15 13:25:24 +01:00
|
|
|
- pip uninstall -y ansible
|
2015-07-13 12:59:49 +02:00
|
|
|
use_sudo: false
|
2018-01-31 14:29:49 +01:00
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2017-01-05 11:02:33 +00:00
|
|
|
- name: ubuntu-16.04
|
|
|
|
|
driver_config:
|
|
|
|
|
image: dliappis/ubuntu-devopsci:16.04
|
|
|
|
|
privileged: true
|
|
|
|
|
provision_command:
|
|
|
|
|
- apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:ansible/ansible
|
|
|
|
|
- apt-get install -y -q net-tools
|
2017-03-16 23:59:13 +00:00
|
|
|
- apt-get update && apt-get -y -q install python-apt python-pycurl python-pip
|
|
|
|
|
- pip install jmespath
|
2017-08-15 13:25:24 +01:00
|
|
|
- pip uninstall -y ansible
|
2017-01-05 11:02:33 +00:00
|
|
|
use_sudo: false
|
2018-01-31 14:29:49 +01:00
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2017-01-05 11:02:33 +00:00
|
|
|
run_command: "/sbin/init"
|
2015-07-09 16:29:06 +02:00
|
|
|
- name: debian-8
|
|
|
|
|
driver_config:
|
2016-04-15 23:17:10 +01:00
|
|
|
image: dliappis/debian-devopsci:8
|
2015-07-09 16:29:06 +02:00
|
|
|
privileged: true
|
2015-11-24 17:32:36 +00:00
|
|
|
provision_command:
|
2016-04-01 17:44:49 +01:00
|
|
|
- apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml curl wget
|
2015-11-24 17:32:36 +00:00
|
|
|
- apt-get install -y -q net-tools
|
2015-12-21 14:05:00 +01:00
|
|
|
- sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
|
|
|
- sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
|
|
|
|
- sed -ri 's/^#?UsePAM .*/UsePAM no/' /etc/ssh/sshd_config
|
2017-03-16 23:59:13 +00:00
|
|
|
- pip install jmespath
|
2017-08-15 13:25:24 +01:00
|
|
|
- pip uninstall -y ansible
|
2018-01-31 14:29:49 +01:00
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
2015-07-13 12:59:49 +02:00
|
|
|
use_sudo: false
|
2015-12-21 14:05:00 +01:00
|
|
|
run_command: "/sbin/init"
|
2015-07-09 16:29:06 +02:00
|
|
|
- name: centos-7
|
|
|
|
|
driver_config:
|
2016-04-15 23:17:10 +01:00
|
|
|
image: dliappis/centos-devopsci:7
|
2015-07-09 16:29:06 +02:00
|
|
|
provision_command:
|
|
|
|
|
- sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
|
|
|
- sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
2015-09-16 14:16:42 +02:00
|
|
|
- sed -ri 's/^#?UsePAM .*/UsePAM no/' /etc/ssh/sshd_config
|
2016-07-25 15:40:59 +03:00
|
|
|
- rm /etc/yum.repos.d/epel*repo /etc/yum.repos.d/puppetlabs-pc1.repo
|
2015-09-16 14:16:42 +02:00
|
|
|
- yum -y install initscripts
|
2017-08-16 13:07:38 +01:00
|
|
|
- yum -y remove ansible
|
2015-07-10 11:09:44 +02:00
|
|
|
- yum clean all
|
2017-03-16 23:59:13 +00:00
|
|
|
- pip install jmespath
|
2018-01-31 14:29:49 +01:00
|
|
|
volume:
|
|
|
|
|
- <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
|
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:
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: standard
|
2015-07-16 15:56:09 +02:00
|
|
|
provisioner:
|
2017-03-16 21:06:17 +00:00
|
|
|
idempotency_test: true
|
2015-07-16 15:56:09 +02:00
|
|
|
playbook: test/integration/standard.yml
|
2015-07-09 16:29:06 +02:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: package
|
2015-07-16 15:56:09 +02:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/package.yml
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: config
|
2015-10-22 19:09:53 +01:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/config.yml
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: multi
|
2015-10-22 19:09:53 +01:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/multi.yml
|
2017-03-16 21:06:17 +00:00
|
|
|
idempotency_test: true
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: xpack
|
2016-07-22 23:44:27 +01:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
2017-08-18 19:38:10 +01:00
|
|
|
playbook: test/integration/xpack.yml
|
2018-01-22 15:04:04 +01:00
|
|
|
- name: xpack-standard
|
2017-08-18 19:38:10 +01:00
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
2017-08-18 20:01:31 +01:00
|
|
|
playbook: test/integration/xpack-standard.yml
|
2017-08-20 10:30:39 -04:00
|
|
|
idempotency_test: true
|
|
|
|
|
- name: issue-test
|
|
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/issue-test.yml
|
2018-01-22 15:04:04 +01:00
|
|
|
idempotency_test: false
|
2018-06-15 17:22:18 +02:00
|
|
|
- name: oss-upgrade
|
|
|
|
|
run_list:
|
|
|
|
|
attributes:
|
|
|
|
|
provisioner:
|
|
|
|
|
playbook: test/integration/oss-upgrade.yml
|
|
|
|
|
idempotency_test: false
|