Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Rendering Elasticsearch port as integer for edxapp
Browse files Browse the repository at this point in the history
The urllib3 libary (used by the Elasticsearch Python library) expects ports to be integers, not strings. This change ensures the YAML and JSON files that get written to disk write the port as an integer so that Python reads it as an integer instead of a string.
  • Loading branch information
clintonb committed May 26, 2017
1 parent 7bb07f9 commit ec00702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/roles/edxapp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ EDXAPP_MYSQL_HOST: 'localhost'
EDXAPP_MYSQL_PORT: '3306'

EDXAPP_SEARCH_HOST: 'localhost'
EDXAPP_SEARCH_PORT: '9200'
EDXAPP_SEARCH_PORT: 9200

# list of dictionaries of the format
# { 'host': 'hostname', 'port': 'portnumber', 'otherconfigsuchas use_ssl': 'True' }
# http://elasticsearch-py.readthedocs.org/en/master/api.html#elasticsearch
EDXAPP_ELASTIC_SEARCH_CONFIG:
- host: "{{ EDXAPP_SEARCH_HOST }}"
port: "{{ EDXAPP_SEARCH_PORT }}"
port: "{{ EDXAPP_SEARCH_PORT | int }}"

EDXAPP_SETTINGS: '{{ COMMON_EDXAPP_SETTINGS }}'

Expand Down

0 comments on commit ec00702

Please sign in to comment.