Prepare for replacing elasticsearch02

logstash uses the first of the discover_nodes as proxy, so we need to
rotate the list in order to be able to replace the first node without
impacting service.

Also replace the discover_node for the logstash-workers accordingly.

Change-Id: Ib6f6d19a766021f9f16fb3bc2de1d80df66f7671
This commit is contained in:
Jens Harbott 2017-12-15 15:10:41 +00:00
parent 154876b422
commit 8b445237ea
1 changed files with 2 additions and 2 deletions

View File

@ -469,12 +469,12 @@ node /^logstash\d*\.openstack\.org$/ {
class { 'openstack_project::logstash':
discover_nodes => [
'elasticsearch02.openstack.org:9200',
'elasticsearch03.openstack.org:9200',
'elasticsearch04.openstack.org:9200',
'elasticsearch05.openstack.org:9200',
'elasticsearch06.openstack.org:9200',
'elasticsearch07.openstack.org:9200',
'elasticsearch02.openstack.org:9200',
],
subunit2sql_db_host => hiera('subunit2sql_db_host', ''),
subunit2sql_db_pass => hiera('subunit2sql_db_password', ''),
@ -492,7 +492,7 @@ node /^logstash-worker\d+\.openstack\.org$/ {
}
class { 'openstack_project::logstash_worker':
discover_node => 'elasticsearch02.openstack.org',
discover_node => 'elasticsearch03.openstack.org',
enable_mqtt => false,
mqtt_password => hiera('mqtt_service_user_password'),
mqtt_ca_cert_contents => hiera('mosquitto_tls_ca_file'),