Browse Source

feat(composer): make dependencies configurable

tags/v1.4.0
Alexander Weidinger 4 years ago
parent
commit
d727b15557
No account linked to committer's email address
3 changed files with 22 additions and 8 deletions
  1. +3
    -8
      php/composer.sls
  2. +9
    -0
      php/map.jinja
  3. +10
    -0
      pillar.example

+ 3
- 8
php/composer.sls View File



include: include:
- php - 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: get-composer:
file.managed: file.managed:

+ 9
- 0
php/map.jinja View File

'cli': { 'cli': {
'ini': '/usr/local/etc/php.ini' 'ini': '/usr/local/etc/php.ini'
}, },
'composer': {
'required_modules': [
'filter',
'json',
'mbstring',
'openssl',
'phar',
],
},
'pkgs': { 'pkgs': {
'apache2': 'mod_php' + freebsd_php_version, 'apache2': 'mod_php' + freebsd_php_version,
'composer_bin': 'composer', 'composer_bin': 'composer',

+ 10
- 0
pillar.example View File

cli: cli:
ini: /location/of/php-cli/php.ini 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 # php-fpm settings
fpm: fpm:



Loading…
Cancel
Save