Use iteritems() instead of items().tags/v0.34.0
{% from "php/map.jinja" import php with context %} | {% from "php/map.jinja" import php with context %} | ||||
{% if not 'ng' in salt['pillar.get']('php', {}) %} | |||||
{% if grains['os_family']=="Debian" %} | {% if grains['os_family']=="Debian" %} | ||||
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %} | {% set use_ppa = salt['pillar.get']('php:use_ppa', none) %} | ||||
{% if use_ppa is not none %} | {% if use_ppa is not none %} | ||||
php: | php: | ||||
pkg.installed: | pkg.installed: | ||||
- name: {{ php.php_pkg }} | - name: {{ php.php_pkg }} | ||||
{% endif %} |
{% set pool_states = [] %} | {% set pool_states = [] %} | ||||
{% for pool, config in php.fpm.pools.items() %} | |||||
{% for pool, config in php.fpm.pools.iteritems() %} | |||||
{% set state = 'php_fpm_pool_conf_' ~ loop.index0 %} | {% set state = 'php_fpm_pool_conf_' ~ loop.index0 %} | ||||
{% set fpath = path_join(pool, php.lookup.fpm.pools) %} | {% set fpath = path_join(pool, php.lookup.fpm.pools) %} | ||||
{% do pool_states.append(state) %} | {% do pool_states.append(state) %} | ||||
{% endfor %} | {% endfor %} | ||||