Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
okeanos-LoD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
okeanos-LoD
Commits
ada5acb9
Commit
ada5acb9
authored
Jul 23, 2015
by
Georgios Ouzounis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from ioantsaf/LAM-49-proxy
Ansible fixes for proxy
parents
ff579dc1
aaddf3c4
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
21 additions
and
36 deletions
+21
-36
ansible/group_vars/all
ansible/group_vars/all
+0
-0
ansible/host_vars/master-node
ansible/host_vars/master-node
+0
-2
ansible/host_vars/slave-1
ansible/host_vars/slave-1
+0
-5
ansible/host_vars/slave-2
ansible/host_vars/slave-2
+0
-5
ansible/hosts
ansible/hosts
+0
-6
ansible/roles/apache-flink/tasks/master.yml
ansible/roles/apache-flink/tasks/master.yml
+1
-0
ansible/roles/apache-hadoop/tasks/setup.yml
ansible/roles/apache-hadoop/tasks/setup.yml
+1
-0
ansible/roles/apache-kafka/tasks/install.yml
ansible/roles/apache-kafka/tasks/install.yml
+1
-0
ansible/roles/common/tasks/common-1.yml
ansible/roles/common/tasks/common-1.yml
+4
-3
ansible/roles/common/tasks/common-2.yml
ansible/roles/common/tasks/common-2.yml
+2
-2
ansible/roles/common/tasks/master.yml
ansible/roles/common/tasks/master.yml
+6
-6
ansible/roles/common/templates/hosts.j2
ansible/roles/common/templates/hosts.j2
+2
-2
ansible/roles/common/templates/ssh-config.j2
ansible/roles/common/templates/ssh-config.j2
+4
-5
No files found.
ansible/group_vars/all
deleted
100644 → 0
View file @
ff579dc1
ansible/host_vars/master-node
deleted
100644 → 0
View file @
ff579dc1
internal_ip: "192.168.0.3"
ansible/host_vars/slave-1
deleted
100644 → 0
View file @
ff579dc1
internal_ip: "192.168.0.2"
## Apache Kafka variables.
id: 1
ansible/host_vars/slave-2
deleted
100644 → 0
View file @
ff579dc1
internal_ip: "192.168.0.4"
## Apache Kafka variables.
id: 2
ansible/hosts
deleted
100644 → 0
View file @
ff579dc1
[master]
master-node
[slaves]
slave-1
slave-2
ansible/roles/apache-flink/tasks/master.yml
View file @
ada5acb9
---
---
-
name
:
Download Apache Flink, Yarn version.
-
name
:
Download Apache Flink, Yarn version.
get_url
:
url="{{ mirror_url }}/flink-{{ version }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz"
get_url
:
url="{{ mirror_url }}/flink-{{ version }}/flink-{{ version }}-{{ version_for }}.tgz" dest="{{ download_path }}/flink-{{ version }}-{{ version_for }}.tgz"
environment
:
proxy_env
tags
:
tags
:
-
download
-
download
...
...
ansible/roles/apache-hadoop/tasks/setup.yml
View file @
ada5acb9
---
---
-
name
:
Download Apache Hadoop.
-
name
:
Download Apache Hadoop.
get_url
:
url="{{ mirror_url }}/hadoop-{{ version }}/hadoop-{{ version }}.tar.gz" dest="{{ download_path }}/hadoop-{{ version }}.tar.gz"
get_url
:
url="{{ mirror_url }}/hadoop-{{ version }}/hadoop-{{ version }}.tar.gz" dest="{{ download_path }}/hadoop-{{ version }}.tar.gz"
environment
:
proxy_env
-
name
:
Uncompress Apache Hadoop.
-
name
:
Uncompress Apache Hadoop.
unarchive
:
src="{{ download_path }}/hadoop-{{ version }}.tar.gz" dest="{{ installation_path }}" copy=no owner=hduser group=lambda
unarchive
:
src="{{ download_path }}/hadoop-{{ version }}.tar.gz" dest="{{ installation_path }}" copy=no owner=hduser group=lambda
...
...
ansible/roles/apache-kafka/tasks/install.yml
View file @
ada5acb9
---
---
-
name
:
Download Apache Kafka.
-
name
:
Download Apache Kafka.
get_url
:
url="{{ mirror_url }}/{{ version }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz"
get_url
:
url="{{ mirror_url }}/{{ version }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz"
environment
:
proxy_env
-
name
:
Uncompress Apache Kafka.
-
name
:
Uncompress Apache Kafka.
unarchive
:
src="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ installation_path }}" copy=no owner=kafka group=lambda
unarchive
:
src="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ installation_path }}" copy=no owner=kafka group=lambda
...
...
ansible/roles/common/tasks/common-1.yml
View file @
ada5acb9
---
---
-
name
:
Copy hosts file.
template
:
src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750
-
name
:
Upgrade packages.
-
name
:
Upgrade packages.
apt
:
upgrade=dist update_cache=yes
apt
:
upgrade=dist update_cache=yes
-
name
:
Install the latest Java 7.
-
name
:
Install the latest Java 7.
apt
:
name=openjdk-7-jdk state=latest install_recommends=no update_cache=yes
apt
:
name=openjdk-7-jdk state=latest install_recommends=no update_cache=yes
-
name
:
Copy hosts file.
template
:
src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750
-
name
:
Copy environment file.
-
name
:
Copy environment file.
template
:
src=environment.j2 dest=/etc/environment backup=no owner=root group=lambda mode=0750
template
:
src=environment.j2 dest=/etc/environment backup=no owner=root group=lambda mode=0750
...
...
ansible/roles/common/tasks/common-2.yml
View file @
ada5acb9
---
---
-
name
:
Distribute root ssh key to all nodes.
#
- name: Distribute root ssh key to all nodes.
authorized_key
:
user=root key="{{ lookup('file', '/tmp/fetched/root_id_rsa.pub') }}"
#
authorized_key: user=root key="{{ lookup('file', '/tmp/fetched/root_id_rsa.pub') }}"
-
name
:
Distribute hduser ssh key to all nodes.
-
name
:
Distribute hduser ssh key to all nodes.
authorized_key
:
user=hduser key="{{ lookup('file', '/tmp/fetched/hduser_id_rsa.pub') }}"
authorized_key
:
user=hduser key="{{ lookup('file', '/tmp/fetched/hduser_id_rsa.pub') }}"
...
...
ansible/roles/common/tasks/master.yml
View file @
ada5acb9
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
-
name
:
Include common tasks.
-
name
:
Include common tasks.
include
:
common-1.yml
include
:
common-1.yml
-
name
:
Generate ssh key for root.
#
- name: Generate ssh key for root.
shell
:
cat /dev/zero | ssh-keygen -q -N ""
#
shell: cat /dev/zero | ssh-keygen -q -N ""
args
:
#
args:
creates
:
/root/.ssh/id_rsa.pub
#
creates: /root/.ssh/id_rsa.pub
-
name
:
Fetch id_rsa.pub file from root.
#
- name: Fetch id_rsa.pub file from root.
fetch
:
src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/root_id_rsa.pub flat=yes
#
fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/root_id_rsa.pub flat=yes
-
name
:
Generate ssh key for hduser.
-
name
:
Generate ssh key for hduser.
shell
:
cat /dev/zero | ssh-keygen -q -N ""
shell
:
cat /dev/zero | ssh-keygen -q -N ""
...
...
ansible/roles/common/templates/hosts.j2
View file @
ada5acb9
127.0.0.1 localhost
127.0.0.1 localhost
{% for master in groups["master"] %}
{% for master in groups["master"] %}
{{ hostvars[master]["internal_ip"] }} {{ master
}}
{{ hostvars[master]["internal_ip"] }} {{ master | replace(".vm.okeanos.grnet.gr",".local")
}}
{% endfor %}
{% endfor %}
{% for slave in groups["slaves"] %}
{% for slave in groups["slaves"] %}
{{ hostvars[slave]["internal_ip"] }} {{ slave
}}
{{ hostvars[slave]["internal_ip"] }} {{ slave | replace(".vm.okeanos.grnet.gr",".local")
}}
{% endfor %}
{% endfor %}
# The following lines are desirable for IPv6 capable hosts
# The following lines are desirable for IPv6 capable hosts
...
...
ansible/roles/common/templates/ssh-config.j2
View file @
ada5acb9
{% for master in groups["master"] %}
{% for master in groups["master"] %}
Host {{ master }}
Host {{ master }}
StrictHostKeyChecking no
StrictHostKeyChecking no
{% endfor %}
{% endfor %}
{% for slave in groups["slaves"] %}
{% for slave in groups["slaves"] %}
Host {{ slave }}
Host {{ slave }}
StrictHostKeyChecking no
StrictHostKeyChecking no
{% endfor %}
{% endfor %}
Host 0.0.0.0
Host 0.0.0.0
StrictHostKeyChecking no
StrictHostKeyChecking no
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