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
ca868a08
Commit
ca868a08
authored
Jul 27, 2015
by
Ioannis Tsafaras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parallel execution of common tasks
parent
69bc52cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
+5
-11
ansible/roles/common/tasks/all.yml
ansible/roles/common/tasks/all.yml
+1
-0
ansible/roles/common/tasks/main.yml
ansible/roles/common/tasks/main.yml
+3
-4
ansible/roles/common/tasks/master.yml
ansible/roles/common/tasks/master.yml
+0
-6
core/fokia/cluster_creator.py
core/fokia/cluster_creator.py
+1
-1
No files found.
ansible/roles/common/tasks/
slaves
.yml
→
ansible/roles/common/tasks/
all
.yml
View file @
ca868a08
---
-
name
:
Create users for each application.
include
:
users.yml
when
:
"
'slaves'
in
group_names"
-
name
:
Include common tasks.
include
:
common-1.yml
...
...
ansible/roles/common/tasks/main.yml
View file @
ca868a08
...
...
@@ -5,8 +5,7 @@
tags
:
-
master
-
name
:
Include tasks for slaves.
include
:
slaves.yml
when
:
"
'slaves'
in
group_names"
-
name
:
Include tasks for all nodes.
include
:
all.yml
tags
:
-
slaves
-
all
ansible/roles/common/tasks/master.yml
View file @
ca868a08
...
...
@@ -2,9 +2,6 @@
-
name
:
Create users for each application.
include
:
users.yml
-
name
:
Include common tasks.
include
:
common-1.yml
# - name: Generate ssh key for root.
# shell: cat /dev/zero | ssh-keygen -q -N ""
# args:
...
...
@@ -37,6 +34,3 @@
-
name
:
Set up ssh config for flink user.
template
:
src=ssh-config.j2 dest=/home/flink/.ssh/config owner=flink group=lambda mode=600
-
name
:
Include more common tasks.
include
:
common-2.yml
core/fokia/cluster_creator.py
View file @
ca868a08
...
...
@@ -13,7 +13,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
'--name'
,
type
=
str
,
dest
=
'name'
,
default
=
"to mikro debian sto livadi"
)
parser
.
add_argument
(
'--slaves'
,
type
=
int
,
dest
=
'slaves'
,
default
=
3
)
parser
.
add_argument
(
'--slaves'
,
type
=
int
,
dest
=
'slaves'
,
default
=
2
)
parser
.
add_argument
(
'--vcpus_master'
,
type
=
int
,
dest
=
'vcpus_master'
,
default
=
4
)
parser
.
add_argument
(
'--vcpus_slave'
,
type
=
int
,
dest
=
'vcpus_slave'
,
default
=
4
)
parser
.
add_argument
(
'--ram_master'
,
type
=
int
,
dest
=
'ram_master'
,
default
=
4096
)
# in MB
...
...
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