Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
2abaf7e3
Commit
2abaf7e3
authored
Nov 09, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding config with health check
parent
3fe7a545
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
9 deletions
+26
-9
playbooks/roles/consul/defaults/main.yml
+10
-9
playbooks/roles/consul/tasks/main.yml
+15
-0
playbooks/roles/consul/templates/edx/etc/consul/consul.d/service.conf.j2
+1
-0
No files found.
playbooks/roles/consul/defaults/main.yml
View file @
2abaf7e3
...
...
@@ -41,15 +41,16 @@ checksums:
services
:
# needed for expected JSON format
-
service
:
name
:
"
test_service"
tags
:
-
consul_managed
-
test
port
:
22
check
:
script
:
"
/bin/true"
interval
:
"
10s"
test_service
:
service
:
name
:
"
test_service"
tags
:
-
consul_managed
-
test
port
:
22
check
:
script
:
"
/bin/true"
interval
:
"
10s"
#
...
...
playbooks/roles/consul/tasks/main.yml
View file @
2abaf7e3
...
...
@@ -78,3 +78,17 @@
tags
:
-
install
-
install:configuration
# POC
# TODO: role responsibility
-
name
:
Create consul service scripts
template
:
>
src=edx/etc/consul/consul.d/service.conf.j2
dest={{consul_config_dir }}/consul.d/{{ item.key }}.conf
owner={{ supervisor_user }}
group={{ common_web_user }}
mode=0644
tags
:
-
install
-
install:configuration
with_dict
:
"
{{
services
}}"
\ No newline at end of file
playbooks/roles/consul/templates/edx/etc/consul/consul.d/service.conf.j2
0 → 100644
View file @
2abaf7e3
{{ item.value | to_nice_json }}
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