How can I specify a list of hosts for curator's config file using an environment variable? I have the following in my curator-config.yml:
client:
hosts: ${ELASTICSEARCH_HOSTS:127.0.0.1}
When I try something like:
$ ELASTICSEARCH_HOST=192.168.202.77,192.168.202.78,192.168.202.79 curator --config curator-config.yml
It times out. The debug output says that hosts gets set to one value in a list instead of three values, which seems wrong:
2018-04-10 15:40:18,700 DEBUG curator.utils get_client:803 kwargs = {'url_prefix': '', 'aws_secret_key': None, 'http_auth': None, 'certificate': None, 'aws_key': None, 'aws_sign_request': False, 'port': 9200, 'hosts': ['192.168.202.77, 192.168.202.78, 192.168.202.79'], 'timeout': 30, 'aws_token': None, 'use_ssl': False, 'master_only': False, 'client_cert': None, 'ssl_no_validate': False, 'client_key': None}
Is there a way to properly expand an environment variable into a list?