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
2f392cfc
Commit
2f392cfc
authored
Oct 14, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try refactoring out localhost on analytics_api
parent
ef4aa1a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
playbooks/roles/analytics_api/defaults/main.yml
+21
-4
playbooks/roles/common_vars/defaults/main.yml
+3
-0
No files found.
playbooks/roles/analytics_api/defaults/main.yml
View file @
2f392cfc
...
...
@@ -29,7 +29,7 @@ ANALYTICS_API_DATABASES:
NAME
:
'
{{
ANALYTICS_API_DEFAULT_DB_NAME
}}'
USER
:
'
api001'
PASSWORD
:
'
password'
HOST
:
'
localhost
'
HOST
:
'
{{
analytics_api_db_default_hostname
}}
'
PORT
:
'
3306'
# read-only user
reports
:
...
...
@@ -37,7 +37,7 @@ ANALYTICS_API_DATABASES:
NAME
:
'
{{
ANALYTICS_API_REPORTS_DB_NAME
}}'
USER
:
'
reports001'
PASSWORD
:
'
password'
HOST
:
'
localhost
'
HOST
:
'
{{
analytics_api_db_reports_hostname
}}
'
PORT
:
'
3306'
ANALYTICS_API_VERSION
:
"
master"
...
...
@@ -45,10 +45,27 @@ ANALYTICS_API_VERSION: "master"
ANALYTICS_API_USERS
:
"
dummy-api-user"
:
"
changeme"
#on docker, use {{ analytics_api_service_name }}
ANALYTICS_API_HOSTNAME
:
"
"
#on docker, use {{ analytics_api_service_name }}-default-mysql
ANALYTICS_API_DB_DEFAULT_HOSTNAME
:
"
"
# on docker, use {{ analytics_api_service_name }}-reports-mysql
ANALYTICS_API_DB_REPORTS_HOSTNAME
:
"
"
#on docker, use {{ analytics_api_service_name }}-email
ANALYTICS_API_EMAIL_HOSTNAME
:
"
"
#common_domain is "localhost", or ".local.edx.org" on docker
ANALYTICS_API_FQDN
:
"
{{
ANALYTICS_API_HOSTNAME
}}{{
COMMON_DOMAIN
}}"
ANALYTICS_API_DB_DEFAULT_FQDN
:
"
{{
ANALYTICS_API_DB_DEFAULT_HOSTNAME
}}{{
COMMON_DOMAIN
}}"
ANALYTICS_API_DB_REPORTS_FQDN
:
"
{{
ANALYTICS_API_DB_REPORTS_HOSTNAME
}}{{
COMMON_DOMAIN
}}"
ANALYTICS_API_EMAIL_FQDN
:
"
{{
ANALYTICS_API_EMAIL_HOSTNAME
}}{{
COMMON_DOMAIN
}}"
ANALYTICS_API_SECRET_KEY
:
'
Your
secret
key
here'
ANALYTICS_API_TIME_ZONE
:
'
UTC'
ANALYTICS_API_LANGUAGE_CODE
:
'
en-us'
ANALYTICS_API_EMAIL_HOST
:
'
localhost'
ANALYTICS_API_EMAIL_HOST_USER
:
'
mail_user'
ANALYTICS_API_EMAIL_HOST_PASSWORD
:
'
mail_password'
ANALYTICS_API_EMAIL_PORT
:
587
...
...
@@ -60,7 +77,7 @@ ANALYTICS_API_SERVICE_CONFIG:
TIME_ZONE
:
'
{{
ANALYTICS_API_TIME_ZONE
}}'
LANGUAGE_CODE
:
'
{{ANALYTICS_API_LANGUAGE_CODE
}}'
# email config
EMAIL_HOST
:
'
{{
ANALYTICS_API_EMAIL_HOST
}}'
EMAIL_HOST
:
'
{{
ANALYTICS_API_EMAIL_HOST
NAME
}}'
EMAIL_HOST_PASSWORD
:
'
{{
ANALYTICS_API_EMAIL_HOST_PASSWORD
}}'
EMAIL_HOST_USER
:
'
{{
ANALYTICS_API_EMAIL_HOST_USER
}}'
EMAIL_PORT
:
'
{{
ANALYTICS_API_EMAIL_PORT
}}'
...
...
playbooks/roles/common_vars/defaults/main.yml
View file @
2f392cfc
...
...
@@ -3,6 +3,9 @@
# to change the base directory
# where edX is installed
#In docker, set to .local.edx.org (NOTICE LEADING .)
COMMON_DOMAIN
:
localhost
# Set global htpasswd credentials
COMMON_ENABLE_BASIC_AUTH
:
False
COMMON_HTPASSWD_USER
:
edx
...
...
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