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
de8a81dc
Commit
de8a81dc
authored
Jul 28, 2015
by
Ioannis Tsafaras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wait_for_ssh
parent
d68b2970
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
ansible/playbooks/cluster-install.yml
ansible/playbooks/cluster-install.yml
+6
-0
ansible/playbooks/wait_for_ssh.yml
ansible/playbooks/wait_for_ssh.yml
+5
-7
ansible/roles/wait_for_ssh/tasks/main.yml
ansible/roles/wait_for_ssh/tasks/main.yml
+4
-0
core/fokia/ansible_manager.py
core/fokia/ansible_manager.py
+0
-1
core/fokia/cluster_creator.py
core/fokia/cluster_creator.py
+1
-2
No files found.
ansible/playbooks/cluster-install.yml
View file @
de8a81dc
---
-
hosts
:
master
user
:
root
gather_facts
:
no
roles
:
-
wait_for_ssh
-
hosts
:
master
user
:
root
roles
:
...
...
ansible/playbooks/wait_for_ssh.yml
View file @
de8a81dc
---
-
name
:
Wait for port 22 to be ready
hosts
:
master
gather_facts
:
no
sudo
:
false
tasks
:
-
local_action
:
wait_for port=22 host="{{ inventory_hostname }}" search_regex=OpenSSH delay=15
tags
:
master
-
hosts
:
master
user
:
root
gather_facts
:
no
roles
:
-
wait_for_ssh
ansible/roles/wait_for_ssh/tasks/main.yml
0 → 100644
View file @
de8a81dc
---
-
name
:
Wait for port 22 to be ready
local_action
:
wait_for port=22 host="{{ inventory_hostname }}" search_regex=OpenSSH
core/fokia/ansible_manager.py
View file @
de8a81dc
...
...
@@ -109,7 +109,6 @@ if __name__ == "__main__":
# manager.run_playbook(playbook_file=script_path + "/../../ansible/playbooks/test/testinventory.yml", tags=['hosts'])
# manager.run_playbook(playbook_file=script_path + "/../../ansible/playbooks/test/testproxy.yml", tags=['install'])
manager
.
run_playbook
(
playbook_file
=
script_path
+
"/../../ansible/playbooks/wait_for_ssh.yml"
)
manager
.
run_playbook
(
playbook_file
=
script_path
+
"/../../ansible/playbooks/cluster-install.yml"
)
manager
.
cleanup
()
core/fokia/cluster_creator.py
View file @
de8a81dc
...
...
@@ -15,7 +15,7 @@ if __name__ == "__main__":
default
=
"lambda.grnet.gr"
)
parser
.
add_argument
(
'--name'
,
type
=
str
,
dest
=
'name'
,
default
=
"to mikro debian sto livadi"
)
parser
.
add_argument
(
'--slaves'
,
type
=
int
,
dest
=
'slaves'
,
default
=
2
)
parser
.
add_argument
(
'--slaves'
,
type
=
int
,
dest
=
'slaves'
,
default
=
1
)
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
...
...
@@ -59,7 +59,6 @@ if __name__ == "__main__":
# manager.run_playbook(playbook_file=script_path + "/../../ansible/playbooks/test/testinventory.yml", tags=['hosts'])
# manager.run_playbook(playbook_file=script_path + "/../../ansible/playbooks/test/testproxy.yml", tags=['install'])
manager
.
run_playbook
(
playbook_file
=
script_path
+
"/../../ansible/playbooks/wait_for_ssh.yml"
)
manager
.
run_playbook
(
playbook_file
=
script_path
+
"/../../ansible/playbooks/cluster-install.yml"
)
# INSERT PLAYBOOKS HERE
...
...
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