Populate the data_source in elastic-recheck.conf

This allows non-default values to be used.

Change-Id: I26b0e1df8618f3285ccdeff3b736443e64bf820c
This commit is contained in:
Ramy Asselin 2015-10-15 23:05:42 +00:00
parent 3111028c67
commit 4677af4140
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class elastic_recheck::bot (
$recheck_ssh_public_key = undef,
$recheck_bot_passwd,
$recheck_bot_nick,
$elastic_search_url = 'http://logstash.openstack.org/elasticsearch',
$subunit2sql_db_uri = 'mysql+pymysql://query:query@logstash.openstack.org/subunit2sql',
) {
include ::elastic_recheck

View File

@ -12,3 +12,7 @@ host=<%= @gerrit_host %>
user=<%= @recheck_gerrit_user %>
query_file=/etc/elastic-recheck/queries
key=/home/recheck/.ssh/id_rsa
[data_source]
es_url=<%= @elastic_search_url %>
db_uri=<%= @subunit2sql_db_uri %>