forked from mcascallares/es-demo-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setupmarvel.sh
executable file
·39 lines (31 loc) · 1.42 KB
/
setupmarvel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Install marvel-agent (and license) on all nodes in example cluster.
# This assumes that you have started the es-demo-cluster project via
# docker-compose. You can get teh es-demo-cluster here:
# [email protected]:mcascallares/es-demo-cluster.git
# You need to run this script in that repository.
docker exec -it elasticsearch bin/plugin install license
docker exec -it elasticsearch bin/plugin install mobz/elasticsearch-head
docker exec -it elasticsearch bin/plugin install lmenezes/elasticsearch-kopf/2.x
echo y | docker exec -i elasticsearch bin/plugin install marvel-agent
for i in $(seq 1 3); do
host=$(printf "master%.2d\n" $i)
echo $host
docker exec -it ${host} bin/plugin install license
docker exec -it ${host} bin/plugin install mobz/elasticsearch-head
docker exec -it ${host} bin/plugin install lmenezes/elasticsearch-kopf/2.x
echo y | docker exec -i ${host} bin/plugin install marvel-agent
echo ${host} done
done
for i in $(seq 1 5); do
host=$(printf "data%.2d\n" $i)
echo ${host}
docker exec -it ${host} bin/plugin install license
docker exec -it ${host} bin/plugin install mobz/elasticsearch-head
docker exec -it ${host} bin/plugin install lmenezes/elasticsearch-kopf/2.x
echo y | docker exec -i ${host} bin/plugin install marvel-agent
echo ${host} done
done
# Install marvel on kibana
docker exec -it kibana /opt/kibana/bin/kibana plugin --install elasticsearch/marvel
docker-compose restart