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
aaddf3c4
Commit
aaddf3c4
authored
Jul 23, 2015
by
Ioannis Tsafaras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ansible fixes for proxy
parent
ff579dc1
Changes
13
Hide 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 @
aaddf3c4
---
-
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"
environment
:
proxy_env
tags
:
-
download
...
...
ansible/roles/apache-hadoop/tasks/setup.yml
View file @
aaddf3c4
---
-
name
:
Download Apache Hadoop.
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.
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 @
aaddf3c4
---
-
name
:
Download Apache Kafka.
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.
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 @
aaddf3c4
---
-
name
:
Copy hosts file.
template
:
src=hosts.j2 dest=/etc/hosts backup=no owner=root group=lambda mode=0750
-
name
:
Upgrade packages.
apt
:
upgrade=dist update_cache=yes
-
name
:
Install the latest Java 7.
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.
template
:
src=environment.j2 dest=/etc/environment backup=no owner=root group=lambda mode=0750
...
...
ansible/roles/common/tasks/common-2.yml
View file @
aaddf3c4
---
-
name
:
Distribute root ssh key to all nodes.
authorized_key
:
user=root key="{{ lookup('file', '/tmp/fetched/root_id_rsa.pub') }}"
#
- name: Distribute root ssh key to all nodes.
#
authorized_key: user=root key="{{ lookup('file', '/tmp/fetched/root_id_rsa.pub') }}"
-
name
:
Distribute hduser ssh key to all nodes.
authorized_key
:
user=hduser key="{{ lookup('file', '/tmp/fetched/hduser_id_rsa.pub') }}"
...
...
ansible/roles/common/tasks/master.yml
View file @
aaddf3c4
...
...
@@ -5,13 +5,13 @@
-
name
:
Include common tasks.
include
:
common-1.yml
-
name
:
Generate ssh key for root.
shell
:
cat /dev/zero | ssh-keygen -q -N ""
args
:
creates
:
/root/.ssh/id_rsa.pub
#
- name: Generate ssh key for root.
#
shell: cat /dev/zero | ssh-keygen -q -N ""
#
args:
#
creates: /root/.ssh/id_rsa.pub
-
name
:
Fetch id_rsa.pub file from root.
fetch
:
src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/root_id_rsa.pub flat=yes
#
- name: Fetch id_rsa.pub file from root.
#
fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/fetched/root_id_rsa.pub flat=yes
-
name
:
Generate ssh key for hduser.
shell
:
cat /dev/zero | ssh-keygen -q -N ""
...
...
ansible/roles/common/templates/hosts.j2
View file @
aaddf3c4
127.0.0.1 localhost
{% for master in groups["master"] %}
{{ hostvars[master]["internal_ip"] }} {{ master
}}
{{ hostvars[master]["internal_ip"] }} {{ master | replace(".vm.okeanos.grnet.gr",".local")
}}
{% endfor %}
{% for slave in groups["slaves"] %}
{{ hostvars[slave]["internal_ip"] }} {{ slave
}}
{{ hostvars[slave]["internal_ip"] }} {{ slave | replace(".vm.okeanos.grnet.gr",".local")
}}
{% endfor %}
# The following lines are desirable for IPv6 capable hosts
...
...
ansible/roles/common/templates/ssh-config.j2
View file @
aaddf3c4
{% for master in groups["master"] %}
Host {{ master }}
StrictHostKeyChecking no
Host {{ master }}
StrictHostKeyChecking no
{% endfor %}
{% for slave in groups["slaves"] %}
Host {{ slave }}
StrictHostKeyChecking no
Host {{ slave }}
StrictHostKeyChecking no
{% endfor %}
Host 0.0.0.0
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