From 146824fd05389f6159d82661988331026ebc0938 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 3 May 2021 14:07:11 +0300 Subject: [PATCH] Replace deprecated host param for monitors Definition of the host parameter has been deprecated in favor of the hostname, which by default set to socket.gethostname(). Since instancemonitor started using hostname param, it should equal to the names compute has in `compute service list` To make this change backportable, we explicitly replace parameter to avoid confusion about missing parameter. Change-Id: I21c7c8cc90cb10afcc224c7cfb9c8c628e5a308b --- templates/masakarimonitors.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/masakarimonitors.conf.j2 b/templates/masakarimonitors.conf.j2 index 33b259f..08e01c6 100644 --- a/templates/masakarimonitors.conf.j2 +++ b/templates/masakarimonitors.conf.j2 @@ -1,5 +1,5 @@ [DEFAULT] -host = {{ ansible_host }} +hostname = {{ ansible_facts['hostname'] }} processmonitor_manager = masakarimonitors.processmonitor.process.ProcessmonitorManager hostmonitor_manager = masakarimonitors.hostmonitor.host.HostmonitorManager use_journal = true