Skip to content

Commit

Permalink
Add ElasticSearch host to production override of defaults (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
amplifi authored Jan 26, 2017
1 parent 2c0f545 commit 7116e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cadasta/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
}
}

ES_HOST = os.environ['ES_HOST']

OPBEAT = {
'ORGANIZATION_ID': os.environ['OPBEAT_ORGID'],
'APP_ID': os.environ['OPBEAT_APPID'],
Expand Down
2 changes: 2 additions & 0 deletions provision/roles/cadasta/install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
S3_SECRET_KEY="{{ s3_secret_key }}"
DJANGO_SETTINGS_MODULE="{{ django_settings }}"
MEMCACHED_HOST="{{ memcached_host }}"
ES_HOST="{{ es_host }}"
OPBEAT_ORGID="{{ opbeat_orgID }}"
OPBEAT_APPID="{{ opbeat_appID }}"
OPBEAT_TOKEN="{{ opbeat_token }}"
Expand All @@ -57,6 +58,7 @@
Defaults env_keep += S3_ACCESS_KEY
Defaults env_keep += S3_SECRET_KEY
Defaults env_keep += MEMCACHED_HOST
Defaults env_keep += ES_HOST
Defaults env_keep += OPBEAT_ORGID
Defaults env_keep += OPBEAT_APPID
Defaults env_keep += OPBEAT_TOKEN
Expand Down

0 comments on commit 7116e18

Please sign in to comment.