Commit 67d51241 authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

LAM-33 Made common role more generic.

parent a1f19512
export JAVA_HOME=/usr/
export HADOOP_HOME=/usr/local/hadoop
export YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export FLINK_HOME=/usr/local/flink
export KAFKA_HOME=/usr/local/kafka
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/hadoop/bin:/usr/local/hadoop/sbin:/usr/local/flink/bin"
Host master-node
StrictHostKeyChecking no
Host slave-1
StrictHostKeyChecking no
Host slave-2
StrictHostKeyChecking no
Host 0.0.0.0
StrictHostKeyChecking no
......@@ -3,5 +3,5 @@
fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/ flat=yes
- name: Set up ssh config.
copy: src="ssh-config" dest="/root/.ssh/config" owner=root group=root mode=664
template: src=ssh-config.j2 dest=/root/.ssh/config owner=root group=root mode=664
---
- name: Include common tasks.
include: common-1.yml
tags:
- slave
- name: Include more common tasks.
include: common-2.yml
tags:
- slave
127.0.0.1 localhost
{{ hostvars["master-node"]["internal_ip"] }} master-node
{{ hostvars["slave-1"]["internal_ip"] }} slave-1
{{ hostvars["slave-2"]["internal_ip"] }} slave-2
{% for master in groups["master"] %}
{{ hostvars[master]["internal_ip"] }} {{ master }}
{% endfor %}
{% for slave in groups["slaves"] %}
{{ hostvars[slave]["internal_ip"] }} {{ slave }}
{% endfor %}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
......
{% for master in groups["master"] %}
Host {{ master }}
StrictHostKeyChecking no
{% endfor %}
{% for slave in groups["slaves"] %}
Host {{ slave }}
StrictHostKeyChecking no
{% endfor %}
Host 0.0.0.0
StrictHostKeyChecking no
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment