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
OpenEdx
configuration
Commits
05e04fbe
Commit
05e04fbe
authored
Jun 17, 2016
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
9162cbf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
playbooks/roles/edxlocal/tasks/main.yml
+7
-2
playbooks/small_deployments/edx-datastores.yml
+7
-4
playbooks/small_deployments/edx-stateless.yml
+2
-1
No files found.
playbooks/roles/edxlocal/tasks/main.yml
View file @
05e04fbe
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
mysql_user
:
mysql_user
:
name
:
"
{{
item.user
}}"
name
:
"
{{
item.user
}}"
password
:
"
{{
item.pass
}}"
password
:
"
{{
item.pass
}}"
host
:
"
{{
item.host
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
"
{{
item.db
}}.*:ALL"
priv
:
"
{{
item.db
}}.*:ALL"
append_privs
:
yes
append_privs
:
yes
when
:
item.db != None and item.db != ''
when
:
item.db != None and item.db != ''
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
mysql_user
:
mysql_user
:
name
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
name
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
password
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
password
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
host
:
"
{{
item.host
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
"
{{
item
}}.*:ALL"
priv
:
"
{{
item
}}.*:ALL"
append_privs
:
yes
append_privs
:
yes
when
:
item != None and item != ''
when
:
item != None and item != ''
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
mysql_user
:
mysql_user
:
name
:
"
api001"
name
:
"
api001"
password
:
"
{{
ANALYTICS_API_DATABASES.default.PASSWORD
}}"
password
:
"
{{
ANALYTICS_API_DATABASES.default.PASSWORD
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
'
{{
ANALYTICS_API_DATABASES.default.NAME
}}.*:ALL/reports.*:SELECT'
priv
:
'
{{
ANALYTICS_API_DATABASES.default.NAME
}}.*:ALL/reports.*:SELECT'
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
...
@@ -47,6 +48,7 @@
...
@@ -47,6 +48,7 @@
mysql_user
:
mysql_user
:
name
:
reports001
name
:
reports001
password
:
"
{{
ANALYTICS_API_DATABASES.reports.PASSWORD
}}"
password
:
"
{{
ANALYTICS_API_DATABASES.reports.PASSWORD
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
'
{{
ANALYTICS_API_DATABASES.reports.NAME
}}.*:SELECT'
priv
:
'
{{
ANALYTICS_API_DATABASES.reports.NAME
}}.*:SELECT'
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
...
@@ -61,6 +63,7 @@
...
@@ -61,6 +63,7 @@
mysql_user
:
mysql_user
:
name
:
"
{{
EDX_NOTES_API_MYSQL_DB_USER
}}"
name
:
"
{{
EDX_NOTES_API_MYSQL_DB_USER
}}"
password
:
"
{{
EDX_NOTES_API_MYSQL_DB_PASS
}}"
password
:
"
{{
EDX_NOTES_API_MYSQL_DB_PASS
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
"
{{
EDX_NOTES_API_MYSQL_DB_NAME
}}.*:SELECT,INSERT,UPDATE,DELETE"
priv
:
"
{{
EDX_NOTES_API_MYSQL_DB_NAME
}}.*:SELECT,INSERT,UPDATE,DELETE"
when
:
EDX_NOTES_API_MYSQL_DB_USER is defined
when
:
EDX_NOTES_API_MYSQL_DB_USER is defined
...
@@ -69,10 +72,12 @@
...
@@ -69,10 +72,12 @@
mysql_user
:
mysql_user
:
name
:
"
{{
COMMON_MYSQL_READ_ONLY_USER
}}"
name
:
"
{{
COMMON_MYSQL_READ_ONLY_USER
}}"
password
:
"
{{
COMMON_MYSQL_READ_ONLY_PASS
}}"
password
:
"
{{
COMMON_MYSQL_READ_ONLY_PASS
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
"
*.*:ALL"
priv
:
"
*.*:ALL"
-
name
:
setup the admin db user
-
name
:
setup the admin db user
mysql_user
:
mysql_user
:
name
:
"
{{
COMMON_MYSQL_ADMIN_USER
}}"
name
:
"
{{
COMMON_MYSQL_ADMIN_USER
}}"
password
:
"
{{
COMMON_MYSQL_ADMIN_PASS
}}"
password
:
"
{{
COMMON_MYSQL_ADMIN_PASS
}}"
host
:
"
{{
EDXLOCAL_MYSQL_ALLOWED_HOST
}}"
priv
:
"
*.*:CREATE
USER"
priv
:
"
*.*:CREATE
USER"
playbooks/small_deployments/edx-datastores.yml
View file @
05e04fbe
...
@@ -10,6 +10,9 @@
...
@@ -10,6 +10,9 @@
gather_facts
:
True
gather_facts
:
True
vars
:
vars
:
MYSQL_BIND_ADDRESS
:
"
0.0.0.0"
MYSQL_BIND_ADDRESS
:
"
0.0.0.0"
# EDXLOCAL_MYSQL_ALLOWED_HOST: "{{ hostvars['stateless'][0]['ansible_hostname'] }}"
EDXLOCAL_MYSQL_ALLOWED_HOST
:
"
ip-192-168-0-160.ec2.internal"
# rabbitmq_ip: "{{ groups['datastores'][0] }}"
vars_files
:
vars_files
:
-
"
../roles/edxapp/defaults/main.yml"
-
"
../roles/edxapp/defaults/main.yml"
-
"
../roles/forum/defaults/main.yml"
-
"
../roles/forum/defaults/main.yml"
...
@@ -18,13 +21,13 @@
...
@@ -18,13 +21,13 @@
-
"
../roles/ecomworker/defaults/main.yml"
-
"
../roles/ecomworker/defaults/main.yml"
roles
:
roles
:
# This install mysql and creates users.
# This install mysql and creates users.
-
role
:
edxlocal
-
role
:
memcache
-
role
:
memcache
-
role
:
mongo
-
role
:
mongo
-
{
role
:
'
rabbitmq'
,
rabbitmq_ip
:
'
127.0.0.1'
}
-
role
:
rabbitmq
-
oraclejdk
-
role
:
oraclejdk
-
role
:
elasticsearch
-
role
:
elasticsearch
-
edx_ansible
-
role
:
edxlocal
-
role
:
edx_ansible
-
role
:
datadog
-
role
:
datadog
when
:
COMMON_ENABLE_DATADOG
when
:
COMMON_ENABLE_DATADOG
-
role
:
splunkforwarder
-
role
:
splunkforwarder
...
...
playbooks/small_deployments/edx-stateless.yml
View file @
05e04fbe
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
EDXAPP_ELASTIC_SEARCH_CONFIG
:
EDXAPP_ELASTIC_SEARCH_CONFIG
:
-
host
:
"
{{
groups['datastores'][0]
}}"
-
host
:
"
{{
groups['datastores'][0]
}}"
port
:
9200
port
:
9200
EDXAPP_MEMCACHE
:
[
"
{{
groups['datastores'][0]
}}"
]
EDXAPP_MEMCACHE
:
[
"
{{
groups['datastores'][0]
}}:11211"
]
EDXAPP_RABBIT_HOSTNAME
:
"
{{
groups['datastores'][0]
}}"
FORUM_MONGO_HOSTS
:
"
{{
groups['datastores']
}}"
FORUM_MONGO_HOSTS
:
"
{{
groups['datastores']
}}"
FORUM_ELASTICSEARCH_HOST
:
"
{{
groups['datastores'][0]
}}"
FORUM_ELASTICSEARCH_HOST
:
"
{{
groups['datastores'][0]
}}"
XQUEUE_RABBITMQ_HOSTNAME
:
"
{{
groups['datastores'][0]
}}"
XQUEUE_RABBITMQ_HOSTNAME
:
"
{{
groups['datastores'][0]
}}"
...
...
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