I have two state files:
php/init.sls
php-fpm.sls
php/init.sls
installs the package php53u
I'm trying to get php-fpm.sls
to require php
as that is how I declare it inside php/init.sls
, however it only works if I require the pkg: php53u
and not sls: php
Contents of php/init.sh
:
php:
pkg:
- name: php53u
- installed
Contents of php-fpm.sls
(using pkg
where it works):
include:
- nginx
- php
php-fpm:
pkg:
- name: php53u-fpm
- installed
service:
- running
- enable: True
- require:
- pkg: php53u-fpm
- pkg: php53u
extend:
nginx:
file:
- name: /etc/nginx/php-fpm
- source: salt://nginx/src/etc/nginx/php-fpm
- managed
- template: jinja
(note that this has extra stuff about nginx
that currently isn't a require
though it should be)