Skip to content

Commit

Permalink
fix(map): fix missing value for php.lookup.fpm.user in multi-php mode
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
philpep committed Aug 14, 2019
1 parent 83ff9d9 commit f91d942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/ng/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f91d942

Please sign in to comment.