Commit 39762aee by John Jarvis

Merge pull request #156 from edx/jarv/single-instance-fixes

Jarv/single instance fixes
parents 72982ca6 2e884fdc
- 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: launched hosts: localhost
sudo: True sudo: True
gather_facts: True gather_facts: True
vars: vars:
......
...@@ -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
......
common_debian_pkgs:
- ack-grep
- lynx-cur
- logrotate
- mosh
- rsyslog
- screen
- tree
- git
...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment