feat(composer): make dependencies configurable
This commit is contained in:
parent
bf6a7582b7
commit
d727b15557
@ -12,14 +12,9 @@
|
||||
|
||||
include:
|
||||
- php
|
||||
{% if grains['os_family'] == 'FreeBSD' %}
|
||||
- php.filter
|
||||
- php.hash
|
||||
- php.json
|
||||
- php.mbstring
|
||||
- php.openssl
|
||||
- php.phar
|
||||
{% endif %}
|
||||
{%- for module in php.lookup.get('composer', {}).get('required_modules', []) %}
|
||||
- php.{{ module }}
|
||||
{%- endfor %}
|
||||
|
||||
get-composer:
|
||||
file.managed:
|
||||
|
@ -3102,6 +3102,15 @@
|
||||
'cli': {
|
||||
'ini': '/usr/local/etc/php.ini'
|
||||
},
|
||||
'composer': {
|
||||
'required_modules': [
|
||||
'filter',
|
||||
'json',
|
||||
'mbstring',
|
||||
'openssl',
|
||||
'phar',
|
||||
],
|
||||
},
|
||||
'pkgs': {
|
||||
'apache2': 'mod_php' + freebsd_php_version,
|
||||
'composer_bin': 'composer',
|
||||
|
@ -74,6 +74,16 @@ php:
|
||||
cli:
|
||||
ini: /location/of/php-cli/php.ini
|
||||
|
||||
# php.composer
|
||||
# Some OS need modules to be installed
|
||||
composer:
|
||||
required_modules:
|
||||
- filter
|
||||
- json
|
||||
- mbstring
|
||||
- openssl
|
||||
- phar
|
||||
|
||||
# php-fpm settings
|
||||
fpm:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user