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
17e51a5e
Commit
17e51a5e
authored
Jan 27, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move repos data out of service_config
parent
f800e81a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
playbooks/roles/edx-notes-api/defaults/main.yml
+9
-7
playbooks/roles/edx-notes-api/meta/main.yml
+1
-0
playbooks/roles/edx_service/tasks/main.yml
+6
-6
No files found.
playbooks/roles/edx-notes-api/defaults/main.yml
View file @
17e51a5e
...
...
@@ -39,6 +39,14 @@ EDX_NOTES_API_DATABASES:
EDX_NOTES_API_ALLOWED_HOSTS
:
-
localhost
EDX_NOTES_API_REPOS
:
-
PROTOCOL
:
"
{{COMMON_GIT_PROTOCOL}}"
DOMAIN
:
"
{{COMMON_GIT_MIRROR}}"
PATH
:
"
{{COMMON_GIT_PATH}}"
REPO
:
edx-notes-api.git
VERSION
:
e0d/migration-overrides
DESTINATION
:
"
{{edx_notes_api_code_dir}}"
#
# This data structure will be written out to yaml configuration file
# in /edx/etc
...
...
@@ -65,13 +73,7 @@ edx_notes_api_service_config:
URL
:
"
{{
EDX_NOTES_API_ELASTICSEARCH_URL
}}"
INDEX_NAME
:
'
{{
EDX_NOTES_API_DATASTORE_NAME
}}'
DISABLE_TOKEN_CHECK
:
True
GIT
:
-
PROTOCOL
:
"
{{COMMON_GIT_PROTOCOL}}"
DOMAIN
:
"
{{COMMON_GIT_MIRROR}}"
PATH
:
"
{{COMMON_GIT_PATH}}"
REPO
:
edx-notes-api.git
VERSION
:
e0d/migration-overrides
DESTINATION
:
"
{{edx_notes_api_code_dir}}"
#
# vars are namespace with the module name.
#
...
...
playbooks/roles/edx-notes-api/meta/main.yml
View file @
17e51a5e
...
...
@@ -24,4 +24,5 @@ dependencies:
edx_role_name
:
"
{{
edx_notes_api_role_name
}}"
edx_service_name
:
"
{{
edx_notes_api_service_name
}}"
edx_service_config
:
"
{{
edx_notes_api_service_config
}}"
edx_service_repos
:
"
{{
edx_notes_api_repos
}}"
-
supervisor
playbooks/roles/edx_service/tasks/main.yml
View file @
17e51a5e
...
...
@@ -93,7 +93,7 @@
-
name
:
check if git repo exists before pruning
stat
:
path={{ item.DESTINATION }}/.git
register
:
git_dir_exists
with_items
:
edx_service_
config.GIT
with_items
:
edx_service_
repos
-
name
:
git prune before checking out
shell
:
cd {{ item.0.DESTINATION }} && git remote prune origin
...
...
@@ -103,14 +103,14 @@
(item.1.stat.isdir is defined) and
item.1.stat.isdir
with_together
:
-
edx_service_
config.GIT
-
edx_service_
repos
-
git_dir_exists.results
-
name
:
validate GIT.PROTOCOL
fail
:
msg='GIT.PROTOCOL must be "https" or "ssh"'
when
:
(item.PROTOCOL != "https") and (item.PROTOCOL != "ssh")
with_items
:
edx_service_
config.GIT
with_items
:
edx_service_
repos
-
name
:
checkout code over ssh
git
:
>
...
...
@@ -120,7 +120,7 @@
sudo_user
:
"
{{
edx_role_name
}}"
register
:
code_checkout
when
:
item.PROTOCOL == "ssh"
with_items
:
edx_service_
config.GIT
with_items
:
edx_service_
repos
-
name
:
checkout code over https
git
:
>
...
...
@@ -129,7 +129,7 @@
sudo_user
:
"
{{
edx_role_name
}}"
register
:
code_checkout
when
:
item.PROTOCOL == "https"
with_items
:
edx_service_
config.GIT
with_items
:
edx_service_
repos
-
name
:
get instance information
...
...
@@ -143,7 +143,7 @@
"
version:{{edx_service_name}}"
:
"
{{
item.0.DOMAIN
}}/{{
item.0.PATH
}}/{{
item.0.REPO
}}
{{
item.1.after
|truncate(7,True,'')
}}"
when
:
item.1.after is defined
with_together
:
-
edx_service_
config.GIT
-
edx_service_
repos
-
code_checkout.results
#TODO: restart supervisor- depends on supervisor being refactored into this role
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