Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
8cfbb38d
Commit
8cfbb38d
authored
9 years ago
by
Jupiter Hu
Browse files
Options
Downloads
Patches
Plain Diff
Fixed karaage db initial check and initialization
parent
94a9d32b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/karaage3.1.17/tasks/karaage.yml
+4
-7
4 additions, 7 deletions
roles/karaage3.1.17/tasks/karaage.yml
with
4 additions
and
7 deletions
roles/karaage3.1.17/tasks/karaage.yml
+
4
−
7
View file @
8cfbb38d
...
@@ -139,11 +139,8 @@
...
@@ -139,11 +139,8 @@
sudo
:
true
sudo
:
true
-
-
# TODO: Fix it
name
:
"
Check
karaage
DB
has
been
initialized
or
not"
name
:
"
Check
DB
tables
has
been
created
or
not"
shell
:
mysql -h {{ karaageDbHost }} -u {{ karaageDbName }} --password={{ mysql_user_password }} -Bse 'use karaage; show tables;' | wc -l
shell
:
ls /root/.karaage_db_init
ignore_errors
:
true
sudo
:
true
register
:
karaage_db_init
register
:
karaage_db_init
-
-
...
@@ -158,9 +155,9 @@
...
@@ -158,9 +155,9 @@
-
-
name
:
"
Create
DB
tables"
name
:
"
Create
DB
tables"
shell
:
kg-manage migrate
&& touch /root/.karaage_db_init
shell
:
kg-manage migrate
sudo
:
true
sudo
:
true
when
:
karaage_db_init
is not defined
when
:
karaage_db_init
.stdout.find("0") ==
0
-
-
name
:
"
Restarting
Celery"
name
:
"
Restarting
Celery"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment