mirror of
https://github.com/saltstack-formulas/php-formula.git
synced 2025-04-17 10:10:29 +00:00
19 lines
509 B
Text
19 lines
509 B
Text
# Manages the php-hhvm service.
|
|
{% from "php/map.jinja" import php with context %}
|
|
{% from "php/macro.jinja" import sls_block %}
|
|
|
|
{% set service_function = {True:'running', False:'dead'}.get(php.hhvm.service.enabled) %}
|
|
|
|
include:
|
|
- php.hhvm.install
|
|
|
|
php_hhvm_service:
|
|
service.{{ service_function }}:
|
|
{{ sls_block(php.hhvm.service.opts) }}
|
|
- name: {{ php.lookup.hhvm.service }}
|
|
- enable: {{ php.hhvm.service.enabled }}
|
|
- require:
|
|
- sls: php.hhvm.install
|
|
- watch:
|
|
- pkg: php_install_hhvm
|
|
|