Browse Source

Merge pull request #52 from pcdummy/master

Use iteritems() instead of items().
tags/v0.34.0
puneet kandhari 9 years ago
parent
commit
843fddfcca
2 changed files with 5 additions and 4 deletions
  1. +4
    -0
      php/init.sls
  2. +1
    -4
      php/ng/fpm/pools_config.sls

+ 4
- 0
php/init.sls View File

{% 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 %}

+ 1
- 4
php/ng/fpm/pools_config.sls View File



{% 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 %}




Loading…
Cancel
Save