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
cff94371
Commit
cff94371
authored
Jan 21, 2016
by
bow
Browse files
Update deployment of config file
parent
491d3367
Changes
1
Hide whitespace changes
Inline
Side-by-side
deployment/ansible-role-sentinel/tasks/deploy_jar.yml
View file @
cff94371
...
...
@@ -8,6 +8,10 @@
set_fact
:
sentinel_dep_jar={{ sentinel_deployment_dir }}/Sentinel-{{ sentinel_version }}.jar
when
:
cmd_scala_series|success and cmd_sentinel_version|success
-
name
:
store expected deployment config path
set_fact
:
sentinel_dep_conf={{ sentinel_dep_jar|dirname }}/sentinel.conf
when
:
cmd_scala_series|success and cmd_sentinel_version|success
-
name
:
remove possible assembled jar if repo was updated
file
:
path={{ sentinel_asm_jar }} state=absent
when
:
gitclone|changed
...
...
@@ -50,5 +54,5 @@
copy
:
src={{ sentinel_asm_jar }} dest={{ sentinel_dep_jar }} remote_src=yes force=yes owner={{ sentinel_user }}
when
:
not dep_jar.stat.exists
-
name
:
c
opy
config file
template
:
src=sentinel.conf.j2 dest={{ sentinel_dep_
jar|dirname }}/sentinel.
conf owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
-
name
:
c
reate
config file
template
:
src=sentinel.conf.j2 dest={{ sentinel_dep_conf
}}
owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
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