mirror of
https://github.com/saltstack-formulas/php-formula.git
synced 2025-04-17 10:10:29 +00:00
refactor(macro): extract file_requisites macro
This commit is contained in:
parent
a2d094c947
commit
d26c4f8057
2 changed files with 7 additions and 6 deletions
|
@ -1,14 +1,9 @@
|
|||
# Manages the php-fpm pools config files
|
||||
{% from "php/map.jinja" import php with context %}
|
||||
{% from "php/macro.jinja" import sls_block %}
|
||||
{% from "php/macro.jinja" import file_requisites %}
|
||||
{% from "php/fpm/pools_config.sls" import pool_states with context %}
|
||||
|
||||
{% macro file_requisites(states) %}
|
||||
{%- for state in states %}
|
||||
- file: {{ state }}
|
||||
{%- endfor -%}
|
||||
{% endmacro %}
|
||||
|
||||
include:
|
||||
- php.fpm.service
|
||||
- php.fpm.pools_config
|
||||
|
|
|
@ -27,3 +27,9 @@
|
|||
|
||||
{{ ret|json() }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{% macro file_requisites(states) %}
|
||||
{%- for state in states %}
|
||||
- file: {{ state }}
|
||||
{%- endfor -%}
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Reference in a new issue