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
62bf0f8e
Commit
62bf0f8e
authored
Mar 09, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ansible fails in looking up keys inside the dictionary when the top level var does not exist.
parent
8d328b76
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
playbooks/roles/analytics_api/defaults/main.yml
+5
-2
playbooks/roles/edxlocal/tasks/main.yml
+3
-3
playbooks/roles/insights/defaults/main.yml
+3
-1
No files found.
playbooks/roles/analytics_api/defaults/main.yml
View file @
62bf0f8e
...
...
@@ -19,11 +19,14 @@ ANALYTICS_API_NEWRELIC_APPNAME: "{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }
ANALYTICS_API_PIP_EXTRA_ARGS
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}"
ANALYTICS_API_NGINX_PORT
:
"
18100"
ANALYTICS_API_DEFAULT_DB_NAME
:
'
analytics-api'
ANALYTICS_API_REPORTS_DB_NAME
:
'
reports'
ANALYTICS_API_DATABASES
:
# rw user
default
:
ENGINE
:
'
django.db.backends.mysql'
NAME
:
'
analytics-api
'
NAME
:
'
{{
ANALYTICS_API_DEFAULT_DB_NAME
}}
'
USER
:
'
api001'
PASSWORD
:
'
password'
HOST
:
'
localhost'
...
...
@@ -31,7 +34,7 @@ ANALYTICS_API_DATABASES:
# read-only user
reports
:
ENGINE
:
'
django.db.backends.mysql'
NAME
:
'
reports
'
NAME
:
'
{{
ANALYTICS_API_REPORTS_DB_NAME
}}
'
USER
:
'
reports001'
PASSWORD
:
'
password'
HOST
:
'
localhost'
...
...
playbooks/roles/edxlocal/tasks/main.yml
View file @
62bf0f8e
...
...
@@ -142,9 +142,9 @@
-
"
{{
XQUEUE_MYSQL_DB_NAME|default('None')
}}"
-
"
{{
ORA_MYSQL_DB_NAME|default('None')
}}"
-
"
{{
EDX_NOTES_API_MYSQL_DB_NAME|default('None')
}}"
-
"
{{
ANALYTICS_API_
SERVICE_CONFIG['DATABASES']['default']['NAME']
|default('None')
}}"
-
"
{{
ANALYTICS_API_
SERVICE_CONFIG['DATABASES']['reports']['NAME']
|default('None')
}}"
-
"
{{
INSIGHTS_DATABASE
S.default.
NAME|default('None')
}}"
-
"
{{
ANALYTICS_API_
DEFAULT_DB_NAME
|default('None')
}}"
-
"
{{
ANALYTICS_API_
REPORTS_DB_NAME
|default('None')
}}"
-
"
{{
INSIGHTS_DATABASE
_
NAME|default('None')
}}"
-
name
:
setup the read-only db user
mysql_user
:
>
...
...
playbooks/roles/insights/defaults/main.yml
View file @
62bf0f8e
...
...
@@ -44,11 +44,13 @@ INSIGHTS_THEME_SCSS: 'sass/themes/open-edx.scss'
INSIGHTS_RESEARCH_URL
:
'
https://www.edx.org/research-pedagogy'
INSIGHTS_OPEN_SOURCE_URL
:
'
http://set-me-please'
INSIGHTS_DATABASE_NAME
:
'
dashboard'
INSIGHTS_DATABASES
:
# rw user
default
:
ENGINE
:
'
django.db.backends.mysql'
NAME
:
'
dashboard
'
NAME
:
'
{{
INSIGHTS_DATABASE_NAME
}}
'
USER
:
'
rosencrantz'
PASSWORD
:
'
secret'
HOST
:
'
localhost'
...
...
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