This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
site.yml
56 lines (53 loc) · 1.91 KB
/
site.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- hosts: security_group_zookeepers
become: true
tags: zookeeper
roles:
- role: humio.java
- role: AnsibleShipyard.ansible-zookeeper
zookeeper_version: 3.4.12
zookeeper_url: http://dk.mirrors.quenda.co/apache/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.tar.gz
zookeeper_hosts: "
{%- set ips = [] %}
{%- for host in groups['security_group_zookeepers'] %}
{{- ips.append(dict(id=hostvars[host]['ec2_tag_cluster_index'], host=host, ip=hostvars[host].ec2_private_ip_address)) }}
{%- endfor %}
{{- ips -}}"
- hosts: security_group_kafkas
tags: kafka
become: true
roles:
- role: humio.java
- role: humio.kafka
kafka_broker_id: "{{ ec2_tag_cluster_index }}"
zookeeper_hosts: "
{%- set ips = [] %}
{%- for host in groups['security_group_zookeepers'] %}
{{- ips.append(dict(id=hostvars[host]['ec2_tag_cluster_index'], host=host, ip=hostvars[host].ec2_private_ip_address)) }}
{%- endfor %}
{{- ips -}}"
kafka_listeners:
- host: "{{ ec2_private_ip_address }}"
- hosts: security_group_humios
tags: humio
become: true
serial: 1
roles:
- role: humio.java
- role: humio.server
humio_host_id: "{{ ec2_tag_cluster_index }}"
zookeeper_hosts: "
{%- set ips = [] %}
{%- for host in groups['security_group_zookeepers'] %}
{{- ips.append(dict(id=hostvars[host]['ec2_tag_cluster_index'], host=host, ip=hostvars[host].ec2_private_ip_address)) }}
{%- endfor %}
{{- ips -}}"
kafka_hosts: "
{%- set ips = [] %}
{%- for host in groups['security_group_kafkas'] %}
{{- ips.append(dict(id=hostvars[host]['ec2_tag_cluster_index'], host=host, ip=hostvars[host].ec2_private_ip_address)) }}
{%- endfor %}
{{- ips -}}"
humio_config:
## all: "FILE=humio_config"
"0": "EXTERNAL_URL=http://{{ ec2_private_ip_address }}:8080"