Skip to content

Commit 6dea60f

Browse files
author
gingerwizard
committed
Merge pull request elastic#96 from gingerwizard/master
Build improvements
2 parents e62af4a + 50155e7 commit 6dea60f

File tree

5 files changed

+51
-17
lines changed

5 files changed

+51
-17
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.kitchen/
2-
*.lock
32
*.pyc
43
.vendor
54
.bundle

.kitchen.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ provisioner:
1515
platforms:
1616
- name: ubuntu-14.04
1717
driver_config:
18-
image: dliappis/ubuntuhetzner:14.04
18+
image: dliappis/ubuntu-devopsci:14.04
1919
privileged: true
2020
provision_command:
2121
- apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:ansible/ansible
2222
- apt-get update && apt-get -y -q install ansible python-apt python-pycurl
2323
use_sudo: false
2424
- name: debian-7
2525
driver_config:
26-
image: debian:7
26+
image: dliappis/debian-devopsci:7
2727
privileged: true
2828
provision_command:
2929
- apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml
@@ -32,7 +32,7 @@ platforms:
3232
use_sudo: false
3333
- name: debian-8
3434
driver_config:
35-
image: debian:8
35+
image: dliappis/debian-devopsci:8
3636
privileged: true
3737
provision_command:
3838
- apt-get update && apt-get -y install python python-dev python-pip build-essential libyaml-dev python-yaml curl wget
@@ -45,21 +45,14 @@ platforms:
4545
run_command: "/sbin/init"
4646
- name: centos-6
4747
driver_config:
48-
image: dliappis/centoshetzner:6
48+
image: dliappis/centos-devopsci:6
4949
privileged: true
5050
provision_command:
51-
- yum remove -y ansible
52-
- yum -y install gmp-devel python-devel python-pip
53-
- pip install ansible
5451
use_sudo: false
5552
- name: centos-7
5653
driver_config:
57-
image: dliappis/centoshetzner:7
54+
image: dliappis/centos-devopsci:7
5855
provision_command:
59-
- yum remove -y ansible
60-
- yum -y install gmp-devel python-devel python-pip
61-
- yum -y groupinstall "Development Tools"
62-
- pip install ansible
6356
- sed -ri 's/^#?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
6457
- sed -ri 's/^#?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config
6558
- sed -ri 's/^#?UsePAM .*/UsePAM no/' /etc/ssh/sshd_config

Gemfile.lock

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
faraday (0.9.2)
5+
multipart-post (>= 1.2, < 3)
6+
highline (1.7.8)
7+
kitchen-ansible (0.40.1)
8+
librarian-ansible
9+
test-kitchen (~> 1.4)
10+
kitchen-docker (2.1.0)
11+
test-kitchen (>= 1.0.0)
12+
librarian (0.1.2)
13+
highline
14+
thor (~> 0.15)
15+
librarian-ansible (3.0.0)
16+
faraday
17+
librarian (~> 0.1.0)
18+
mixlib-shellout (2.2.6)
19+
multipart-post (2.0.0)
20+
net-scp (1.2.1)
21+
net-ssh (>= 2.6.5)
22+
net-ssh (2.9.4)
23+
safe_yaml (1.0.4)
24+
test-kitchen (1.4.2)
25+
mixlib-shellout (>= 1.2, < 3.0)
26+
net-scp (~> 1.1)
27+
net-ssh (~> 2.7, < 2.10)
28+
safe_yaml (~> 1.0)
29+
thor (~> 0.18)
30+
thor (0.19.1)
31+
32+
PLATFORMS
33+
ruby
34+
35+
DEPENDENCIES
36+
kitchen-ansible (= 0.40.1)
37+
kitchen-docker (= 2.1.0)
38+
net-ssh (~> 2.0)
39+
test-kitchen (= 1.4.2)
40+
41+
BUNDLED WITH
42+
1.11.2

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,11 @@ recommended in any multi node cluster configuration.
137137
```
138138
- hosts: master_nodes
139139
roles:
140-
- { role: elasticsearch, es_instance_name: "node1", es_heap_size: "1g", es_config: { "discovery.zen.ping.multicast.enabled": false, discovery.zen.ping.unicast.hosts: "elastic02:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.mlockall: false, discovery.zen.ping.multicast.enabled: false } }
140+
- { role: elasticsearch, es_instance_name: "node1", es_heap_size: "1g", es_config: {cluster.name: "test-cluster", "discovery.zen.ping.multicast.enabled": false, discovery.zen.ping.unicast.hosts: "elastic02:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.mlockall: false, discovery.zen.ping.multicast.enabled: false } }
141141
vars:
142142
es_scripts: false
143143
es_templates: false
144144
es_version_lock: false
145-
es_cluster_name: test-cluster
146145
ansible_user: ansible
147146
es_plugins:
148147
- plugin: elasticsearch/license
@@ -159,6 +158,7 @@ recommended in any multi node cluster configuration.
159158
node.data: true,
160159
node.master: false,
161160
bootstrap.mlockall: false,
161+
cluster.name: "test-cluster",
162162
discovery.zen.ping.multicast.enabled: false }
163163
}
164164
- { role: elasticsearch, es_instance_name: "node2",
@@ -170,13 +170,13 @@ recommended in any multi node cluster configuration.
170170
node.data: true,
171171
node.master: false,
172172
bootstrap.mlockall: false,
173+
cluster.name: "test-cluster",
173174
discovery.zen.ping.multicast.enabled: false }
174175
}
175176
vars:
176177
es_scripts: false
177178
es_templates: false
178179
es_version_lock: false
179-
es_cluster_name: test-cluster
180180
ansible_user: ansible
181181
es_plugins:
182182
- plugin: elasticsearch/license

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
- name: restart elasticsearch
33
service: name={{instance_init_script | basename}} state=restarted enabled=yes
4-
when: es_restart_on_change and es_start_service and (not elasticsearch_started.changed or (plugin_installed is defined and plugin_installed.changed) or elasticsearch_install.changed)
4+
when: es_restart_on_change and es_start_service and not elasticsearch_started.changed and ((plugin_installed is defined and plugin_installed.changed) or elasticsearch_install.changed)

0 commit comments

Comments
 (0)