From f91d942cfb577f1c2fee8b6a79659a1cd30b554f Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Wed, 14 Aug 2019 13:35:30 +0200 Subject: [PATCH] fix(map): fix missing value for php.lookup.fpm.user in multi-php mode This fixes the rendering issue: [CRITICAL] Rendering SLS 'base:php.ng.fpm.config' failed: Jinja variable 'dict object' has no attribute 'user' When using multiple php versions, this is issued by "{{ php.lookup.fpm.user }}" from php/ng/fpm/config.sls Add default users in group in the relevant 'fpm' dict from map.jinja (this is to set owner and group to 'pool.d' directory). --- php/ng/map.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php/ng/map.jinja b/php/ng/map.jinja index f4f45f6..92ad002 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -2272,6 +2272,8 @@ 'conf': confdir + '/fpm/php-fpm.conf', 'ini': confdir + '/fpm/php.ini', 'pools': confdir + '/fpm/pool.d', + 'user': 'root', + 'group': 'root', 'service': 'php' + phpng_version + '-fpm', 'user': 'root', 'group': 'root',