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
0c2b158e
Commit
0c2b158e
authored
Jun 02, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1151 from edx/jarv/dd-var
changing common dd var
parents
9b6976f4
44e37c28
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
15 deletions
+12
-15
playbooks/roles/common/defaults/main.yml
+2
-2
playbooks/roles/datadog/defaults/main.yml
+0
-2
playbooks/roles/datadog/tasks/main.yml
+1
-1
playbooks/roles/edxapp/defaults/main.yml
+0
-2
playbooks/roles/edxapp/templates/cms.conf.j2
+2
-2
playbooks/roles/edxapp/templates/lms.conf.j2
+2
-2
playbooks/roles/notifier/defaults/main.yml
+1
-1
playbooks/roles/xqueue/defaults/main.yml
+1
-0
playbooks/roles/xqueue/templates/xqueue.conf.j2
+3
-3
No files found.
playbooks/roles/common/defaults/main.yml
View file @
0c2b158e
...
...
@@ -48,10 +48,10 @@ COMMON_MYSQL_MIGRATE_PASS: !!null
COMMON_MONGO_READ_ONLY_USER
:
'
read_only'
COMMON_MONGO_READ_ONLY_PASS
:
!!null
COMMON_ENABLE_DATADOG
:
False
COMMON_DATADOG_API_KEY
:
"
PUT_YOUR_API_KEY_HERE"
COMMON_ENABLE_SPLUNKFORWARDER
:
False
COMMON_ENABLE_NEWRELIC
:
False
NEWRELIC_LICENSE
:
"
YOUR
LICENSE"
COMMON_NEWRELIC_LICENSE
:
"
YOUR
LICENSE"
common_debian_pkgs
:
-
ntp
-
ack-grep
...
...
playbooks/roles/datadog/defaults/main.yml
View file @
0c2b158e
---
DATADOG_API_KEY
:
"
PUT_YOUR_API_KEY_HERE"
datadog_apt_key
:
"
http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x226AE980C7A7DA52"
datadog_debian_pkgs
:
...
...
playbooks/roles/datadog/tasks/main.yml
View file @
0c2b158e
...
...
@@ -45,7 +45,7 @@
lineinfile
:
>
dest="/etc/dd-agent/datadog.conf"
regexp="^api_key:.*"
line="api_key:{{ DATADOG_API_KEY }}"
line="api_key:{{
COMMON_
DATADOG_API_KEY }}"
notify
:
-
restart the datadog service
tags
:
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
0c2b158e
...
...
@@ -212,10 +212,8 @@ EDXAPP_XML_FROM_GIT: false
EDXAPP_XML_S3_BUCKET
:
!!null
EDXAPP_XML_S3_KEY
:
!!null
EDXAPP_NEWRELIC_LICENSE
:
"
YOUR
LICENSE"
EDXAPP_NEWRELIC_LMS_APPNAME
:
"
edX-LMS"
EDXAPP_NEWRELIC_CMS_APPNAME
:
"
edX-CMS"
edxapp_newrelic_executable
:
"
{{
edxapp_venv_dir
}}/bin/newrelic-admin"
#-------- Everything below this line is internal to the role ------------
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
0c2b158e
[program:cms]
{% if COMMON_ENABLE_NEWRELIC %}
{% set executable = edxapp_
newrelic_executable + '
run-program ' + edxapp_venv_dir + '/bin/gunicorn' %}
{% set executable = edxapp_
venv_dir + '/bin/newrelic-admin
run-program ' + edxapp_venv_dir + '/bin/gunicorn' %}
{% else %}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' %}
{% endif %}
...
...
@@ -14,7 +14,7 @@ command={{ executable }} --preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_c
user={{ common_web_user }}
directory={{ edxapp_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_CMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{
EDXAPP
_NEWRELIC_LICENSE }},{% endif -%}PORT={{edxapp_cms_gunicorn_port}},ADDRESS={{edxapp_cms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_cms_env }},SERVICE_VARIANT="cms"
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_CMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{
COMMON
_NEWRELIC_LICENSE }},{% endif -%}PORT={{edxapp_cms_gunicorn_port}},ADDRESS={{edxapp_cms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_cms_env }},SERVICE_VARIANT="cms"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
0c2b158e
[program:lms]
{% if COMMON_ENABLE_NEWRELIC %}
{% set executable = edxapp_
newrelic_executable + '
run-program ' + edxapp_venv_dir + '/bin/gunicorn' %}
{% set executable = edxapp_
venv_dir + '/bin/newrelic-admin
run-program ' + edxapp_venv_dir + '/bin/gunicorn' %}
{% else %}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' %}
{% endif %}
...
...
@@ -14,7 +14,7 @@ command={{ executable }} --preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_l
user={{ common_web_user }}
directory={{ edxapp_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_LMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{
EDXAPP
_NEWRELIC_LICENSE }},{% endif -%} PORT={{edxapp_lms_gunicorn_port}},ADDRESS={{edxapp_lms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_lms_env }},SERVICE_VARIANT="lms"
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_LMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{
COMMON
_NEWRELIC_LICENSE }},{% endif -%} PORT={{edxapp_lms_gunicorn_port}},ADDRESS={{edxapp_lms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_lms_env }},SERVICE_VARIANT="lms"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
...
...
playbooks/roles/notifier/defaults/main.yml
View file @
0c2b158e
...
...
@@ -89,7 +89,7 @@ notifier_env_vars:
CS_API_KEY
:
"
{{
NOTIFIER_COMMENT_SERVICE_API_KEY
}}"
US_URL_BASE
:
"
{{
NOTIFIER_USER_SERVICE_BASE
}}"
US_API_KEY
:
"
{{
NOTIFIER_USER_SERVICE_API_KEY
}}"
DATADOG_API_KEY
:
"
{{
DATADOG_API_KEY
}}"
DATADOG_API_KEY
:
"
{{
COMMON_
DATADOG_API_KEY
}}"
LOG_LEVEL
:
"
{{
NOTIFIER_LOG_LEVEL
}}"
RSYSLOG_ENABLED
:
"
{{
NOTIFIER_RSYSLOG_ENABLED
}}"
BROKER_URL
:
"
{{
NOTIFIER_CELERY_BROKER_URL
}}"
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
0c2b158e
...
...
@@ -30,6 +30,7 @@ XQUEUE_MYSQL_USER: 'xqueue001'
XQUEUE_MYSQL_PASSWORD
:
'
password'
XQUEUE_MYSQL_HOST
:
'
localhost'
XQUEUE_MYSQL_PORT
:
'
3306'
XQUEUE_NEWRELIC_APPNAME
:
"
edX-xqueue"
# Internal vars below this line
#############################################
...
...
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
0c2b158e
[program:xqueue]
{% if COMMON_ENABLE_NEWRELIC %}
{% set executable =
edxapp_newrelic_executable + ' run-program ' + edxapp
_venv_dir + '/bin/gunicorn' %}
{% set executable =
xqueue_venv_dir + '/bin/newrelic-admin run-program ' + xqueue
_venv_dir + '/bin/gunicorn' %}
{% else %}
{% set executable =
edxapp
_venv_dir + '/bin/gunicorn' %}
{% set executable =
xqueue
_venv_dir + '/bin/gunicorn' %}
{% endif %}
{% if ansible_processor|length > 0 %}
...
...
@@ -15,7 +15,7 @@ command={{ xqueue_venv_bin }}/gunicorn --preload -b {{ xqueue_gunicorn_host }}:{
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{
EDXAPP_NEWRELIC_LMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{ EDXAPP
_NEWRELIC_LICENSE }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.aws_settings,SERVICE_VARIANT="xqueue"
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{
XQUEUE_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ COMMON
_NEWRELIC_LICENSE }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.aws_settings,SERVICE_VARIANT="xqueue"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
...
...
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