Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
0e0cdc7e
Commit
0e0cdc7e
authored
Jul 07, 2015
by
Georgios Ouzounis
Browse files
LAM-33 Modified Apache Kafka variable and task names.
parent
cba49377
Changes
5
Hide whitespace changes
Inline
Side-by-side
ansible/playbooks/tasks
0 → 120000
View file @
0e0cdc7e
../tasks/
\ No newline at end of file
ansible/roles/apache-kafka/handlers/main.yml
View file @
0e0cdc7e
---
-
name
:
create topics
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
kafka-
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
master_node_
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic input
notify
:
-
create batch output topic
-
name
:
create batch output topic
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
kafka-
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
master_node_
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic batch-output
notify
:
-
create stream output topic
-
name
:
create stream output topic
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
kafka-
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output
shell
:
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper {{ hostvars['master-node']['
master_node_
ip'] }}:2181 --replication-factor {{ groups['slaves']|count + 1 }} --partitions 1 --topic stream-output
ansible/roles/apache-kafka/tasks/download.yml
0 → 100644
View file @
0e0cdc7e
---
-
name
:
Download Apache Kafka.
get_url
:
url=http://mirrors.myaegean.gr/apache/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz dest=/root/kafka_2.10-0.8.2.1.tgz
tags
:
-
download
-
name
:
Uncompress Apache Kafka.
unarchive
:
src=/root/kafka_2.10-0.8.2.1.tgz dest=/usr/local copy=no
tags
:
-
download
-
name
:
Create softlink for Apache Kafka.
file
:
src=/usr/local/kafka_2.10-0.8.2.1 dest=/usr/local/kafka state=link
tags
:
-
download
ansible/roles/apache-kafka/tasks/main.yml
View file @
0e0cdc7e
---
-
name
:
Include common tasks.
include
:
common.yml
include
:
download.yml
tags
:
-
download
-
name
:
Include tasks for master.
include
:
master.yml
...
...
ansible/roles/apache-kafka/tasks/slaves.yml
View file @
0e0cdc7e
...
...
@@ -10,7 +10,7 @@
-
configure-kafka
-
name
:
Configure the Apache Zookeeper host.
lineinfile
:
dest=/usr/local/kafka/config/server.properties regexp="^zookeeper.connect=localhost:2181" line="zookeeper.connect={{ hostvars['master-node']['
kafka-
ip'] }}:2181"
lineinfile
:
dest=/usr/local/kafka/config/server.properties regexp="^zookeeper.connect=localhost:2181" line="zookeeper.connect={{ hostvars['master-node']['
master_node_
ip'] }}:2181"
tags
:
-
configure-kafka
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment