Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SASC
sentinel-legacy
Commits
ae8595b3
Commit
ae8595b3
authored
Jan 24, 2016
by
bow
Browse files
Fix error on first time deployments caused by incorrect nginx startup order
parent
16bf6ee1
Changes
2
Hide whitespace changes
Inline
Side-by-side
deployment/ansible-role-nginx/tasks/main.yml
View file @
ae8595b3
---
-
name
:
install nginx
apt
:
pkg=nginx state=present
-
name
:
start nginx
service
:
name=nginx state=started enabled=yes
deployment/ansible-role-sentinel/tasks/deploy.yml
View file @
ae8595b3
...
...
@@ -70,25 +70,25 @@
-
name
:
set nginx configuration
template
:
src=sentinel.nginx.j2 dest=/etc/nginx/sites-available/sentinel
notify
:
restart nginx
register
:
nginx_config
-
name
:
disable default nginx configuration
file
:
path=/etc/nginx/sites-enabled/default state=absent
notify
:
restart nginx
-
name
:
enable sentinel nginx configuration
file
:
path=/etc/nginx/sites-enabled/sentinel src=/etc/nginx/sites-available/sentinel state=link
notify
:
restart nginx
when
:
nginx_config|changed
-
name
:
start nginx
service
:
name=nginx state=started enabled=yes
-
name
:
ensure scaladoc page is up
uri
:
url=http://127.0.0.1/scaladoc/index.html
-
name
:
ensure guide page
is
up
-
name
:
ensure guide page up
uri
:
url=http://127.0.0.1/guide/index.html
-
name
:
wait
up to 5 mins for sentinel to run on port
8080
-
name
:
wait
sentinel startup
wait_for
:
host=127.0.0.1 port=8080
-
name
:
ensure api-docs page is up
...
...
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