From 2789dcd4e87c98eb2f9b03bdd1cc67da54c89e58 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 12 Jul 2019 13:53:27 +0000 Subject: [PATCH] [pagure] try to get templates right --- roles/pagure/frontend/templates/pagure.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/pagure/frontend/templates/pagure.cfg b/roles/pagure/frontend/templates/pagure.cfg index 53237b1060..8585cb4df6 100644 --- a/roles/pagure/frontend/templates/pagure.cfg +++ b/roles/pagure/frontend/templates/pagure.cfg @@ -78,10 +78,12 @@ GIT_URL_GIT = 'https://pagure.io/' {% endif %} ### The IP addresses allowed for the internal endpoints -{% if hostvars[host]['eth0_ipv6'] %} +{% if hostvars[host].eth0_ipv6 is defined %} IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', {{ hostvars[host]['eth0_ip'] }} , {{ hostvars[host]['eth0_ipv6'] }}] -{% else %} +{% else if hostvars[host].eth0_ip is defined %} IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1', {{ hostvars[host]['eth0_ip'] }}] +{% else %} +IP_ALLOWED_INTERNAL = ['127.0.0.1', 'localhost', '::1'] {% endif %} # Redis configuration