<commit_before># variables common to the lms role, automatically loaded
# when the role is included
---

# These are variables that default to a localhost
# setup and are meant to be overwritten for
# different environments.
#
# Variables in all caps are environment specific
# Lowercase variables are internal to the role
#
# Defaults specified here should not contain
# any secrets or host identifying information.

EDXAPP_LMS_BASE: ''
EDXAPP_PREVIEW_LMS_BASE: ''
EDXAPP_CMS_BASE: ''
EDXAPP_AWS_ACCESS_KEY_ID:  ''
EDXAPP_AWS_SECRET_ACCESS_KEY:  ''
EDXAPP_XQUEUE_BASIC_AUTH: [ 'edx', 'edx' ]
EDXAPP_XQUEUE_DJANGO_AUTH:
  username: 'lms'
  password: 'password'
EDXAPP_XQUEUE_URL: 'http://localhost:18040'

EDXAPP_MONGO_HOSTS: ['localhost']
EDXAPP_MONGO_PASSWORD: 'password'
EDXAPP_MONGO_PORT: 27017
EDXAPP_MONGO_USER: 'edxapp'
EDXAPP_MONGO_DB_NAME: 'edxapp'

EDXAPP_MYSQL_DB_NAME: 'edxapp'
EDXAPP_MYSQL_USER: 'root'
EDXAPP_MYSQL_PASSWORD: ''
EDXAPP_MYSQL_HOST: 'localhost'
EDXAPP_MYSQL_PORT: '3306'

EDXAPP_EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend'

EDXAPP_LOG_LEVEL: 'INFO'

EDXAPP_MEMCACHE: [ 'localhost:11211' ]
EDXAPP_COMMENTS_SERVICE_URL:  'http://localhost:4567'
EDXAPP_COMMENTS_SERVICE_KEY:  'password'

EDXAPP_EDXAPP_SECRET_KEY: ''

EDXAPP_PEARSON_TEST_PASWORD: ''

EDXAPP_OEE_URL: 'http://localhost:18060/'
EDXAPP_OEE_USER: 'lms'
EDXAPP_OEE_PASSWORD: 'password'

EDXAPP_ANALYTICS_API_KEY:  ''
EDXAPP_ZENDESK_USER: ''
EDXAPP_ZENDESK_API_KEY: ''
EDXAPP_CELERY_USER: 'celery'
EDXAPP_CELERY_PASSWORD: '<PASSWORD>'

EDXAPP_MITX_FEATURES:
  AUTH_USE_OPENID_PROVIDER: true
  CERTIFICATES_ENABLED: true
  ENABLE_DISCUSSION_SERVICE: true
  ENABLE_INSTRUCTOR_ANALYTICS: true
  ENABLE_PEARSON_HACK_TEST: false
  SUBDOMAIN_BRANDING: false
  SUBDOMAIN_COURSE_LISTINGS: false
  PREVIEW_LMS_BASE: $EDXAPP_PREVIEW_LMS_BASE

EDXAPP_BOOK_URL: ''
EDXAPP_SITE_NAME: 'example.com'
EDXAPP_MEDIA_URL:  ''
EDXAPP_ANALYTICS_SERVER_URL:  ''
EDXAPP_FEEDBACK_SUBMISSION_EMAIL: ''
EDXAPP_CELERY_BROKER_HOSTNAME: ''
EDXAPP_LOGGING_ENV:  'sandbox'

EDXAPP_SYSLOG_SERVER: ''
EDXAPP_RABBIT_HOSTNAME: 'localhost'
EDXAPP_XML_MAPPINGS: {}

EDXAPP_LMS_NGINX_PORT: 18000
EDXAPP_LMS_PREVIEW_NGINX_PORT: 18020
EDXAPP_CMS_NGINX_PORT: 18010

EDXAPP_LMS_BASIC_AUTH: False
EDXAPP_CMS_BASIC_AUTH: False
EDXAPP_LMS_PREVIEW_BASIC_AUTH: False
EDXAPP_LANG: 'en_US.UTF-8'

#-------- Everything below this line is internal to the role ------------

#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/

edxapp_data_dir: "{{ COMMON_DATA_DIR }}/edxapp"
edxapp_app_dir: "{{ COMMON_APP_DIR }}/edxapp"
edxapp_log_dir: "{{ COMMON_LOG_DIR }}/edxapp"
edxapp_venvs_dir: "{{ edxapp_app_dir }}/venvs"
edxapp_venv_dir: "{{ edxapp_venvs_dir }}/edxapp"
edxapp_venv_bin: "{{ edxapp_venv_dir }}/bin"
edxapp_rbenv_dir: "{{ edxapp_app_dir }}"
edxapp_rbenv_root: "{{ edxapp_rbenv_dir }}/.rbenv"
edxapp_rbenv_shims: "{{ edxapp_rbenv_root }}/shims"
edxapp_rbenv_bin: "{{ edxapp_rbenv_root }}/bin"
edxapp_gem_root: "{{ edxapp_rbenv_dir }}/.gem"
edxapp_gem_bin: "{{ edxapp_gem_root }}/bin"
edxapp_user: edxapp
edxapp_deploy_path: "{{ edxapp_venv_bin }}:{{ edxapp_code_dir }}/bin:{{ edxapp_rbenv_bin }}:{{ edxapp_rbenv_shims }}:{{ edxapp_gem_bin }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
edxapp_staticfile_dir: "{{ edxapp_data_dir }}/staticfiles"
edxapp_course_data_dir: "{{ edxapp_data_dir }}/data"
edxapp_upload_dir: "{{ edxapp_data_dir }}/uploads"
edxapp_theme_dir: "{{ edxapp_data_dir }}/themes"
edxapp_workers:
  - queue: low
    service_variant: cms
    concurrency: 3
  - queue: default
    service_variant: cms
    concurrency: 4
  - queue: high
    service_variant: cms
    concurrency: 1
  - queue: low
    service_variant: lms
    concurrency: 1
  - queue: default
    service_variant: lms
    concurrency: 3
  - queue: high
    service_variant: lms
    concurrency: 4
  - queue: high_mem
    service_variant: lms
    concurrency: 2







# TODO: old style variable syntax is necessary
# here until ansible 1.4
edxapp_deploy_environment:
  LANG: "en_US.UTF-8"
  NO_PREREQ_INSTALL: 1
  SKIP_WS_MIGRATIONS: 1
  RBENV_ROOT: $edxapp_rbenv_root
  GEM_HOME: $edxapp_gem_root
  GEM_PATH: $edxapp_gem_root
  PATH: $edxapp_deploy_path


edxapp_generic_auth_config:  &edxapp_generic_auth
  AWS_ACCESS_KEY_ID:  $EDXAPP_AWS_ACCESS_KEY_ID
  AWS_SECRET_ACCESS_KEY: $EDXAPP_AWS_SECRET_ACCESS_KEY
  SECRET_KEY:  $EDXAPP_EDXAPP_SECRET_KEY
  XQUEUE_INTERFACE:
    basic_auth: $EDXAPP_XQUEUE_BASIC_AUTH
    django_auth: $EDXAPP_XQUEUE_DJANGO_AUTH
    url: $EDXAPP_XQUEUE_URL
  DOC_STORE_CONFIG: &edxapp_generic_default_docstore
    db: $EDXAPP_MONGO_DB_NAME
    host: $EDXAPP_MONGO_HOSTS
    password: <PASSWORD>
    port: $EDXAPP_MONGO_PORT
    user: $EDXAPP_MONGO_USER
    collection:  'modulestore'
  CONTENTSTORE:
    ENGINE:  'xmodule.contentstore.mongo.MongoContentStore'
    #
    # connection strings are duplicated temporarily for
    # backward compatibility
    #
    OPTIONS:
      db: $EDXAPP_MONGO_DB_NAME<commit_msg>Use the EDXAPP_LANG var which already exists.<commit_after># variables common to the lms role, automatically loaded
# when the role is included
---

# These are variables that default to a localhost
# setup and are meant to be overwritten for
# different environments.
#
# Variables in all caps are environment specific
# Lowercase variables are internal to the role
#
# Defaults specified here should not contain
# any secrets or host identifying information.

EDXAPP_LMS_BASE: ''
EDXAPP_PREVIEW_LMS_BASE: ''
EDXAPP_CMS_BASE: ''
EDXAPP_AWS_ACCESS_KEY_ID:  ''
EDXAPP_AWS_SECRET_ACCESS_KEY:  ''
EDXAPP_XQUEUE_BASIC_AUTH: [ 'edx', 'edx' ]
EDXAPP_XQUEUE_DJANGO_AUTH:
  username: 'lms'
  password: 'password'
EDXAPP_XQUEUE_URL: 'http://localhost:18040'

EDXAPP_MONGO_HOSTS: ['localhost']
EDXAPP_MONGO_PASSWORD: 'password'
EDXAPP_MONGO_PORT: 27017
EDXAPP_MONGO_USER: 'edxapp'
EDXAPP_MONGO_DB_NAME: 'edxapp'

EDXAPP_MYSQL_DB_NAME: 'edxapp'
EDXAPP_MYSQL_USER: 'root'
EDXAPP_MYSQL_PASSWORD: ''
EDXAPP_MYSQL_HOST: 'localhost'
EDXAPP_MYSQL_PORT: '3306'

EDXAPP_EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend'

EDXAPP_LOG_LEVEL: 'INFO'

EDXAPP_MEMCACHE: [ 'localhost:11211' ]
EDXAPP_COMMENTS_SERVICE_URL:  'http://localhost:4567'
EDXAPP_COMMENTS_SERVICE_KEY:  'password'

EDXAPP_EDXAPP_SECRET_KEY: ''

EDXAPP_PEARSON_TEST_PASWORD: ''

EDXAPP_OEE_URL: 'http://localhost:18060/'
EDXAPP_OEE_USER: 'lms'
EDXAPP_OEE_PASSWORD: 'password'

EDXAPP_ANALYTICS_API_KEY:  ''
EDXAPP_ZENDESK_USER: ''
EDXAPP_ZENDESK_API_KEY: ''
EDXAPP_CELERY_USER: 'celery'
EDXAPP_CELERY_PASSWORD: 'celery'

EDXAPP_MITX_FEATURES:
  AUTH_USE_OPENID_PROVIDER: true
  CERTIFICATES_ENABLED: true
  ENABLE_DISCUSSION_SERVICE: true
  ENABLE_INSTRUCTOR_ANALYTICS: true
  ENABLE_PEARSON_HACK_TEST: false
  SUBDOMAIN_BRANDING: false
  SUBDOMAIN_COURSE_LISTINGS: false
  PREVIEW_LMS_BASE: $EDXAPP_PREVIEW_LMS_BASE

EDXAPP_BOOK_URL: ''
EDXAPP_SITE_NAME: 'example.com'
EDXAPP_MEDIA_URL:  ''
EDXAPP_ANALYTICS_SERVER_URL:  ''
EDXAPP_FEEDBACK_SUBMISSION_EMAIL: ''
EDXAPP_CELERY_BROKER_HOSTNAME: ''
EDXAPP_LOGGING_ENV:  'sandbox'

EDXAPP_SYSLOG_SERVER: ''
EDXAPP_RABBIT_HOSTNAME: 'localhost'
EDXAPP_XML_MAPPINGS: {}

EDXAPP_LMS_NGINX_PORT: 18000
EDXAPP_LMS_PREVIEW_NGINX_PORT: 18020
EDXAPP_CMS_NGINX_PORT: 18010

EDXAPP_LMS_BASIC_AUTH: False
EDXAPP_CMS_BASIC_AUTH: False
EDXAPP_LMS_PREVIEW_BASIC_AUTH: False
EDXAPP_LANG: 'en_US.UTF-8'

#-------- Everything below this line is internal to the role ------------

#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/

edxapp_data_dir: "{{ COMMON_DATA_DIR }}/edxapp"
edxapp_app_dir: "{{ COMMON_APP_DIR }}/edxapp"
edxapp_log_dir: "{{ COMMON_LOG_DIR }}/edxapp"
edxapp_venvs_dir: "{{ edxapp_app_dir }}/venvs"
edxapp_venv_dir: "{{ edxapp_venvs_dir }}/edxapp"
edxapp_venv_bin: "{{ edxapp_venv_dir }}/bin"
edxapp_rbenv_dir: "{{ edxapp_app_dir }}"
edxapp_rbenv_root: "{{ edxapp_rbenv_dir }}/.rbenv"
edxapp_rbenv_shims: "{{ edxapp_rbenv_root }}/shims"
edxapp_rbenv_bin: "{{ edxapp_rbenv_root }}/bin"
edxapp_gem_root: "{{ edxapp_rbenv_dir }}/.gem"
edxapp_gem_bin: "{{ edxapp_gem_root }}/bin"
edxapp_user: edxapp
edxapp_deploy_path: "{{ edxapp_venv_bin }}:{{ edxapp_code_dir }}/bin:{{ edxapp_rbenv_bin }}:{{ edxapp_rbenv_shims }}:{{ edxapp_gem_bin }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
edxapp_staticfile_dir: "{{ edxapp_data_dir }}/staticfiles"
edxapp_course_data_dir: "{{ edxapp_data_dir }}/data"
edxapp_upload_dir: "{{ edxapp_data_dir }}/uploads"
edxapp_theme_dir: "{{ edxapp_data_dir }}/themes"
edxapp_workers:
  - queue: low
    service_variant: cms
    concurrency: 3
  - queue: default
    service_variant: cms
    concurrency: 4
  - queue: high
    service_variant: cms
    concurrency: 1
  - queue: low
    service_variant: lms
    concurrency: 1
  - queue: default
    service_variant: lms
    concurrency: 3
  - queue: high
    service_variant: lms
    concurrency: 4
  - queue: high_mem
    service_variant: lms
    concurrency: 2







# TODO: old style variable syntax is necessary
# here until ansible 1.4
edxapp_deploy_environment:
  LANG: $EDXAPP_LANG
  NO_PREREQ_INSTALL: 1
  SKIP_WS_MIGRATIONS: 1
  RBENV_ROOT: $edxapp_rbenv_root
  GEM_HOME: $edxapp_gem_root
  GEM_PATH: $edxapp_gem_root
  PATH: $edxapp_deploy_path


edxapp_generic_auth_config:  &edxapp_generic_auth
  AWS_ACCESS_KEY_ID:  $EDXAPP_AWS_ACCESS_KEY_ID
  AWS_SECRET_ACCESS_KEY: $EDXAPP_AWS_SECRET_ACCESS_KEY
  SECRET_KEY:  $EDXAPP_EDXAPP_SECRET_KEY
  XQUEUE_INTERFACE:
    basic_auth: $EDXAPP_XQUEUE_BASIC_AUTH
    django_auth: $EDXAPP_XQUEUE_DJANGO_AUTH
    url: $EDXAPP_XQUEUE_URL
  DOC_STORE_CONFIG: &edxapp_generic_default_docstore
    db: $EDXAPP_MONGO_DB_NAME
    host: $EDXAPP_MONGO_HOSTS
    password: <PASSWORD>
    port: $EDXAPP_MONGO_PORT
    user: $EDXAPP_MONGO_USER
    collection:  'modulestore'
  CONTENTSTORE:
    ENGINE:  'xmodule.contentstore.mongo.MongoContentStore'
    #
    # connection strings are duplicated temporarily for
    # backward compatibility
    #
    OPTIONS:
      db: $EDXAPP_MONGO_DB_NAME
{'fraction_non_alphanumeric': 0.10063631913852178, 'fraction_numerical': 0.012041116005873716, 'mean_word_length': 5.856375838926175, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3299756', 'n_tokens_mistral': 4544, 'n_tokens_neox': 4353, 'n_words': 711}