Skip to content
Snippets Groups Projects
Unverified Commit d727b155 authored by Alexander Weidinger's avatar Alexander Weidinger Committed by Imran Iqbal
Browse files

feat(composer): make dependencies configurable

parent bf6a7582
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment