瀏覽代碼

Allow overwriting the fpm pools config name via 'filename'.

Signed-off-by: Rene Jochum <rene@jochums.at>
tags/v0.34.0
Rene Jochum 8 年之前
父節點
當前提交
ce9ce324ce
共有 2 個檔案被更改,包括 8 行新增3 行删除
  1. +1
    -1
      php/ng/fpm/pools_config.sls
  2. +7
    -2
      pillar.example

+ 1
- 1
php/ng/fpm/pools_config.sls 查看文件



{% for pool, config in php.fpm.pools.iteritems() %} {% 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(config.get('filename', pool), php.lookup.fpm.pools) %}


{{ state }}: {{ state }}:
{% if config.enabled %} {% if config.enabled %}

+ 7
- 2
pillar.example 查看文件

pkgs: pkgs:
memcached: php5-memcached memcached: php5-memcached
# ensures both will be installed # ensures both will be installed
curl:
curl:
- php-common - php-common
- curl
- curl
# a dictionary can be used in more complex cases where you want # a dictionary can be used in more complex cases where you want
# to pass forward special arguments to the pkg.installed call # to pass forward special arguments to the pkg.installed call
# you MUST include the name argument for this to work # you MUST include the name argument for this to work
# If true, the pool file will be managed, if False it will be # If true, the pool file will be managed, if False it will be
# absent # absent
enabled: True enabled: True

# Overwrite the filename for ext_pillar that doesn't allow
# dots in fields names.
filname: my_other_name.conf

# arguments passed forward to file.managed or file.absent # arguments passed forward to file.managed or file.absent
opts: opts:
replace: False replace: False

Loading…
取消
儲存