From fa8f2d5316766d4de6a943c04f6c50d17e858661 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 17 Apr 2018 02:53:15 +0200 Subject: [PATCH] Use inventory_hostname so vars aren't needed Signed-off-by: Patrick Uiterwijk --- roles/bodhi2/base/templates/production.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bodhi2/base/templates/production.ini.j2 b/roles/bodhi2/base/templates/production.ini.j2 index 095373e01a..7fe2a25e9e 100644 --- a/roles/bodhi2/base/templates/production.ini.j2 +++ b/roles/bodhi2/base/templates/production.ini.j2 @@ -135,7 +135,7 @@ releng_fedmsg_certname = shell-bodhi-backend01{{env_suffix}}.phx2.fedoraproject. # Where to initially mash repositories. You can use %(here)s to reference the location of this file. # mash_dir = -{% if ansible_hostname.startswith('bodhi-backend') %} +{% if inventory_hostname.startswith('bodhi-backend') %} mash_dir = /mnt/koji/compose/updates/ {% else %} # do not use on frontends as bodhi will check the mount and refuse to run without it. @@ -149,7 +149,7 @@ max_concurrent_mashes = 8 # Where to symlink the latest repos by their tag name. You can use %(here)s to reference the # location of this file. # mash_stage_dir = -{% if ansible_hostname.startswith('bodhi-backend') %} +{% if inventory_hostname.startswith('bodhi-backend') %} mash_stage_dir = /mnt/koji/compose/updates/ {% else %} # do not use on frontends as bodhi will check the mount and refuse to run without it.