ansible-role-elasticsearch/.kitchen.yml

98 lines
3.2 KiB
YAML
Raw Normal View History

---
driver:
name: docker
provisioner:
name: ansible_playbook
hosts: localhost
roles_path: ../
require_ansible_repo: true
ansible_verbose: true
2017-01-02 16:19:48 +00:00
ansible_version: 2.2.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
platforms:
- name: ubuntu-14.04
driver_config:
2016-04-15 23:17:10 +01:00
image: dliappis/ubuntu-devopsci:14.04
privileged: true
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
- apt-get update && apt-get -y -q install python-apt python-pycurl
2015-07-13 12:59:49 +02:00
use_sudo: false
2017-01-04 13:23:22 +00:00
volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
- 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
- apt-get update && apt-get -y -q install python-apt python-pycurl
use_sudo: false
volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
run_command: "/sbin/init"
- name: debian-8
driver_config:
2016-04-15 23:17:10 +01:00
image: dliappis/debian-devopsci:8
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
2017-01-03 10:36:23 +00:00
- apt-get install -y ansible
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-01-04 13:23:22 +00: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"
- name: centos-7
driver_config:
2016-04-15 23:17:10 +01:00
image: dliappis/centos-devopsci:7
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
- 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
- yum clean all
2017-01-04 13:23:22 +00:00
volume: <%=ENV['ES_XPACK_LICENSE_FILE']%>:/tmp/license.json
2015-09-16 14:16:42 +02:00
run_command: "/usr/sbin/init"
privileged: true
2015-07-13 12:59:49 +02:00
use_sudo: false
suites:
- name: standard-2x
2015-07-16 15:56:09 +02:00
provisioner:
playbook: test/integration/standard.yml
run_list:
attributes:
- name: package-2x
2015-07-16 15:56:09 +02:00
run_list:
attributes:
extra_vars:
es_plugins:
- plugin: mapper-murmur3
2015-07-16 15:56:09 +02:00
provisioner:
playbook: test/integration/package.yml
- name: config-2x
run_list:
attributes:
provisioner:
playbook: test/integration/config.yml
- name: multi-2x
run_list:
attributes:
2015-12-14 19:34:09 +00:00
extra_vars:
es_plugins:
- plugin: mapper-murmur3
provisioner:
playbook: test/integration/multi.yml
- name: xpack-2x
run_list:
attributes:
provisioner:
playbook: test/integration/xpack.yml