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
39762aee
Commit
39762aee
authored
Jul 15, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #156 from edx/jarv/single-instance-fixes
Jarv/single instance fixes
parents
72982ca6
2e884fdc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
25 deletions
+34
-25
playbooks/edx_sandbox.yml
+17
-15
playbooks/roles/common/tasks/main.yml
+1
-10
playbooks/roles/common/vars/main.yml
+9
-0
playbooks/roles/edxapp/vars/main.yml
+7
-0
No files found.
playbooks/edx_sandbox.yml
View file @
39762aee
-
name
:
Create sandbox instance
# This playbook is to configure
hosts
:
localhost
# the official edX sandbox instance
connection
:
local
# sandbox.edx.org
gather_facts
:
False
#
vars
:
# On the machine you want to configure run the following
keypair
:
continuous-integration
# command from the configuration/playbooks directory:
instance_type
:
m1.xlarge
# ansible-playbook -c local --limit "localhost:127.0.0.1" /path/to/configuration/playbooks/edx_sandbox.yml -i "localhost,"
security_group
:
sandbox
#
image
:
ami-d0f89fb9
# To use different default ports for lms-preview, cms and to set the lms_base and lms_preview_base,
region
:
us-east-1
# for the following configuration:
instance_tags
:
'
{"Name":
"edx-sandbox"}'
# studio listening on port 80 - studio.example.com
roles
:
# lms listening on port 80 - example.com
-
launch_instance
# lms-preview listening on port 80 - preview.example.com
#
# ansible-playbook -c local --limit "localhost:127.0.0.1" path/to/configuration/playbooks/edx_sandbox.yml -i "localhost," -e "cms_nginx_port=80 lms_preview_nginx_port=80 c_lms_base=example.com c_preview_lms_base=preview.example.com"
#
-
name
:
Configure instance(s)
-
name
:
Configure instance(s)
hosts
:
l
aunched
hosts
:
l
ocalhost
sudo
:
True
sudo
:
True
gather_facts
:
True
gather_facts
:
True
vars
:
vars
:
...
...
playbooks/roles/common/tasks/main.yml
View file @
39762aee
...
@@ -35,16 +35,7 @@
...
@@ -35,16 +35,7 @@
-
name
:
Install role-independent useful system packages
-
name
:
Install role-independent useful system packages
# do this before log dir setup; rsyslog package guarantees syslog user present
# do this before log dir setup; rsyslog package guarantees syslog user present
apt
:
pkg={{item}} install_recommends=yes state=present update_cache=yes
apt
:
pkg={{','.join(common_debian_pkgs)}} install_recommends=yes state=present update_cache=yes
with_items
:
-
ack-grep
-
lynx-cur
-
logrotate
-
mosh
-
rsyslog
-
screen
-
tree
-
git
tags
:
tags
:
-
pre_install
-
pre_install
-
update
-
update
...
...
playbooks/roles/common/vars/main.yml
0 → 100644
View file @
39762aee
common_debian_pkgs
:
-
ack-grep
-
lynx-cur
-
logrotate
-
mosh
-
rsyslog
-
screen
-
tree
-
git
playbooks/roles/edxapp/vars/main.yml
View file @
39762aee
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
# the defaults should be appropriate for running
# the defaults should be appropriate for running
# all roles on a single instance
# all roles on a single instance
# These are custom variables that can be overridden
# on the command line to change specific values in the hash
c_lms_base
:
'
'
c_preview_lms_base
:
'
'
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
edxapp_generic_auth_config
:
&edxapp_generic_auth
edxapp_generic_auth_config
:
&edxapp_generic_auth
...
@@ -68,6 +73,7 @@ edxapp_generic_auth_config: &edxapp_generic_auth
...
@@ -68,6 +73,7 @@ edxapp_generic_auth_config: &edxapp_generic_auth
'
CELERY_BROKER_PASSWORD'
:
'
'
'
CELERY_BROKER_PASSWORD'
:
'
'
generic_env_config
:
&edxapp_generic_env
generic_env_config
:
&edxapp_generic_env
'
LMS_BASE'
:
"
{{
c_lms_base
}}"
'
BOOK_URL'
:
'
'
'
BOOK_URL'
:
'
'
'
CERT_QUEUE'
:
'
certificates'
'
CERT_QUEUE'
:
'
certificates'
'
LOCAL_LOGLEVEL'
:
'
INFO'
'
LOCAL_LOGLEVEL'
:
'
INFO'
...
@@ -81,6 +87,7 @@ generic_env_config: &edxapp_generic_env
...
@@ -81,6 +87,7 @@ generic_env_config: &edxapp_generic_env
'
ENABLE_PEARSON_HACK_TEST'
:
false
'
ENABLE_PEARSON_HACK_TEST'
:
false
'
SUBDOMAIN_BRANDING'
:
false
'
SUBDOMAIN_BRANDING'
:
false
'
SUBDOMAIN_COURSE_LISTINGS'
:
false
'
SUBDOMAIN_COURSE_LISTINGS'
:
false
'
PREVIEW_LMS_BASE'
:
"
{{
c_preview_lms_base
}}"
'
WIKI_ENABLED'
:
true
'
WIKI_ENABLED'
:
true
'
SYSLOG_SERVER'
:
'
syslog.a.m.i4x.org'
'
SYSLOG_SERVER'
:
'
syslog.a.m.i4x.org'
'
SITE_NAME'
:
'
example.com'
'
SITE_NAME'
:
'
example.com'
...
...
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