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
af01848b
Commit
af01848b
authored
Aug 12, 2016
by
Clinton Blackburn
Committed by
GitHub
Aug 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added continous delivery playbook to discovery service refresh metadata (#3310)
ECOM-5134
parent
5d7cebb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
playbooks/continuous_delivery/discovery_refresh_metadata.yml
+40
-0
No files found.
playbooks/continuous_delivery/discovery_refresh_metadata.yml
0 → 100644
View file @
af01848b
# This playbook will run the refresh_course_metadata management command. It is intended solely for usage with the
# Catalog/Course Discovery Service.
#
# Required variables for this playbook:
#
# - APPLICATION_PATH - the top-level path of the Django application; the application lives underneath
# this directory in a directory with the same name as APPLICATION_NAME.
# - APPLICATION_NAME - The name of the application that we are migrating.
# - APPLICATION_USER - user which is meant to run the application
# - HIPCHAT_TOKEN - API token to send messages to hipchat
# - HIPCHAT_ROOM - ID or name of the room to send the notification
# - HIPCHAT_URL - URL of the hipchat API (defaults to v1 of the api)
#
# Example command line to run this playbook:
# ansible-playbook -vvvv -i "localhost," -c local \
# -e @overrides.yml \
# discovery_refresh_metadata.yml
#
-
hosts
:
all
vars
:
HIPCHAT_URL
:
https://api.hipchat.com/v2/
COMMAND_PREFIX
:
"
.
{{
APPLICATION_PATH
}}/{{
APPLICATION_NAME
}}_env;
/edx/bin/python.{{
APPLICATION_NAME
}}
/edx/bin/manage.{{
APPLICATION_NAME
}}"
gather_facts
:
False
tasks
:
-
name
:
Refresh metadata
shell
:
'
{{
COMMAND_PREFIX
}}
refresh_course_metadata'
become_user
:
"
{{
APPLICATION_USER
}}"
-
name
:
Send Hipchat notification
hipchat_2_0_0_1
:
api
:
"
{{
HIPCHAT_URL
}}"
token
:
"
{{
HIPCHAT_TOKEN
}}"
room
:
"
{{
HIPCHAT_ROOM
}}"
msg
:
"
Catalog
metadata
has
been
refreshed."
ignore_errors
:
yes
when
:
HIPCHAT_TOKEN is defined
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