Commit f11679c6 by John Jarvis

Move role specific vars to the role directory

This keeps vars that are specific to roles with the role, not
very well documented except in the playbook example here:
https://github.com/ansible/ansible/blob/devel/examples/playbooks/roletest.yml

This makes playbooks more concise since you do not have to explicitely
include vars for each roles, var_files will still override any of the
default values in <role>/vars/main.yml
parent 53634843
......@@ -98,11 +98,15 @@ cloudformation_templates <-- official edX cloudformation templates
│   │   └── tasks
│   ├── lms
│   │   ├── tasks <-- tasks that are run to setup an LMS
│   │   └── templates
│   │   ├── templates
│   │ └── vars <-- main.yml in this directory is auto-loaded when the role is included
│   │
│   └── nginx
│   ├── handlers
│   ├── handlers
│   ├── tasks
│   └── templates
│   ├── vars
│   └── templates
│   (etc)
└── vars <-- public variable definitions
└── secure <-- secure variables (example)
......
- hosts: tag_Group_edxapp_custom
vars_files:
- "vars/lms_vars.yml"
- "vars/secure/edxapp_stage_vars.yml"
- "vars/secure/edxapp_custom_vars.yml"
- "vars/secure/users.yml"
......
- hosts: tag_Group_edxapp_prod
vars_files:
- "vars/lms_vars.yml"
- "vars/secure/edxapp_prod_vars.yml"
roles:
- common
......
- hosts: tag_Group_edxapp_stage
vars_files:
- "vars/lms_vars.yml"
- "vars/secure/edxapp_stage_vars.yml"
- "vars/secure/users.yml"
- "vars/secure/edxapp_stage_users.yml"
......
# Variables for all playbooks
# Variables for all common playbook
#
# These variables should apply to all roles and environments.
# All definitions can be overrided in the
# the group files that are in this directory
#
# If a new variable is added please document it!
---
nginx_cfg:
......@@ -20,6 +16,4 @@ nginx_cfg:
# this value can be overiden in vars/secure/<group>.yml
htpasswd: |
edx:$apr1$2gWcIvlc$Nu7b/KTwd5HoIDEkSPNUk/
pkgs:
nginx:
state: installed
---
auth_config:
'CONTENTSTORE':
'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore'
'MODULESTORE':
'default':
'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
env_config:
'CACHES':
'default':
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'KEY_FUNCTION': 'util.memcache.safe_key'
'general':
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'KEY_FUNCTION': 'util.memcache.safe_key'
'mongo_metadata_inheritance':
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'KEY_FUNCTION': 'util.memcache.safe_key'
'TIMEOUT': 300
'staticfiles':
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'KEY_FUNCTION': 'util.memcache.safe_key'
'CERT_QUEUE': 'certificates'
'COURSE_LISTINGS':
'default': ['MITx/6.002x/2012_Fall']
'stage-berkeley': [ 'BerkeleyX/CS169/fa12']
'stage-harvard': [ 'HarvardX/CS50/2012H']
'stage-mit': [ 'MITx/3.091/MIT_2012_Fall']
'stage-num': [ 'MITx/6.002x-NUM/2012_Fall_NUM']
'stage-sjsu': [ 'MITx/6.002x-EE98/2012_Fall_SJSU']
'LOCAL_LOGLEVEL': 'INFO'
'META_UNIVERSITIES':
'UTx': [ 'UTAustinX']
'MITX_FEATURES': { 'AUTH_USE_OPENID_PROVIDER': true,
'CERTIFICATES_ENABLED': true, 'ENABLE_DISCUSSION_SERVICE': true,
'ENABLE_INSTRUCTOR_ANALYTICS': true, 'ENABLE_PEARSON_HACK_TEST': true,
'SUBDOMAIN_BRANDING': true, 'SUBDOMAIN_COURSE_LISTINGS': true}
'SUBDOMAIN_BRANDING': { 'stage-berkeley': 'BerkeleyX',
'stage-harvard': 'HarvardX', 'stage-mit': 'MITx',
'stage-num': 'MITx', 'stage-sjsu': 'MITx'}
'VIRTUAL_UNIVERSITIES': []
'WIKI_ENABLED': true
# Variables for nginx role
---
pkgs:
nginx:
state: installed
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