In order to reuse the default structure of this formula I changed the config a little bit to configure hhvm files.tags/v0.34.0
Manages the php-fpm service. | Manages the php-fpm service. | ||||
``php.ng.hhvm`` | |||||
--------------- | |||||
Meta-state that combines php.ng.hhvm states | |||||
``php.ng.hhvm.config`` | |||||
---------------------- | |||||
Manages the php-hhvm config files | |||||
``php.ng.hhvm.install`` | |||||
----------------------- | |||||
Installs the php-hhvm package | |||||
``php.ng.hhvm.repo`` | |||||
-------------------- | |||||
Configures the hhvm repo for debian/ubuntu | |||||
``php.ng.hhvm.service`` | |||||
----------------------- | |||||
Manages the php-hhvm service. | |||||
``php.ng.gd`` | ``php.ng.gd`` | ||||
------------- | ------------- | ||||
{% from "php/ng/map.jinja" import php with context %} | {% from "php/ng/map.jinja" import php with context %} | ||||
{% from "php/ng/ini.jinja" import php_ini %} | {% from "php/ng/ini.jinja" import php_ini %} | ||||
{% set ini_settings = php.ini.defaults %} | |||||
{% do ini_settings.update(php.hhvm.config.ini.settings) %} | |||||
{% set server_settings = php.lookup.hhvm.server %} | |||||
{% do server_settings.update(php.hhvm.config.server.settings) %} | |||||
{% set conf_settings = php.lookup.hhvm.defaults %} | |||||
{% do conf_settings.update(php.hhvm.config.conf.settings) %} | |||||
{% set php_settings = php.lookup.hhvm.php %} | |||||
{% do php_settings.update(php.hhvm.config.php.settings) %} | |||||
php_hhvm_ini_config: | php_hhvm_ini_config: | ||||
{{ php_ini(php.lookup.hhvm.ini, php.hhvm.config.ini.opts, ini_settings) }} | |||||
{{ php_ini(php.lookup.hhvm.conf, php.hhvm.config.server.opts, server_settings) }} | |||||
php_hhvm_conf_config: | php_hhvm_conf_config: | ||||
{{ php_ini(php.lookup.hhvm.conf, php.hhvm.config.conf.opts, conf_settings) }} | |||||
{{ php_ini(php.lookup.hhvm.ini, php.hhvm.config.php.opts, php_settings) }} | |||||
php_hhvm_service: | php_hhvm_service: | ||||
service: | service: | ||||
- watch: | - watch: | ||||
- file: php_hhvm_ini_cnfig | |||||
- file: php_hhvm_ini_config | |||||
- file: php_hhvm_conf_config | - file: php_hhvm_conf_config | ||||
- require: | - require: | ||||
- sls: php.ng.hhvm.config | - sls: php.ng.hhvm.config |
'conf': '/etc/hhvm/server.ini', | 'conf': '/etc/hhvm/server.ini', | ||||
'ini': '/etc/hhvm/php.ini', | 'ini': '/etc/hhvm/php.ini', | ||||
'service': 'hhvm', | 'service': 'hhvm', | ||||
'defaults': odict([ | |||||
('global', odict([ | |||||
('pid', '/var/run/hhvm.pid'), | |||||
('error_log', '/var/log/hhvm.log'), | |||||
])), | |||||
]), | |||||
'defaults': {}, | |||||
'server': odict([ | |||||
('pid', '/var/run/hhvm.pid'), | |||||
('hhvm.server.port', '9000'), | |||||
('hhvm.server.type', 'fastcgi'), | |||||
('hhvm.server.default_document', 'index.php'), | |||||
('hhvm.log.use_log_file', 'true'), | |||||
('hhvm.log.file', '/var/log/hhvm/error.log'), | |||||
('hhvm.repo.central.path', '/var/run/hhvm/hhvm.hhbc'), | |||||
]), | |||||
'php': odict([ | |||||
('session.save_handler', 'files'), | |||||
('session.save_path', '/var/lib/hhvm/sessions'), | |||||
('session.gc_maxlifetime', '1440'), | |||||
('hhvm.log.level', 'Warning'), | |||||
('hhvm.log.always_log_unhandled_exceptions', 'true'), | |||||
('hhvm.log.runtime_error_reporting_level', '8191'), | |||||
('hhvm.mysql.typed_results', 'false'), | |||||
]), | |||||
}, | }, | ||||
'cli': { | 'cli': { | ||||
'ini': '/etc/php5/cli/php.ini', | 'ini': '/etc/php5/cli/php.ini', | ||||
'opts': {}, | 'opts': {}, | ||||
}, | }, | ||||
'config': { | 'config': { | ||||
'ini': { | |||||
'server': { | |||||
'opts': {}, | 'opts': {}, | ||||
'settings': {}, | 'settings': {}, | ||||
}, | }, | ||||
'conf': { | |||||
'php': { | |||||
'opts': {}, | 'opts': {}, | ||||
'settings': {}, | 'settings': {}, | ||||
}, | }, |