File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1212
1313include:
1414 - php
15- {% if grains[' os_family' ] == ' FreeBSD' % }
16- - php.filter
17- - php.hash
18- - php.json
19- - php.mbstring
20- - php.openssl
21- - php.phar
22- {% endif % }
15+ {%- for module in php.lookup.get(' composer' , {}).get(' required_modules' , []) % }
16+ - php.{{ module }}
17+ {%- endfor % }
2318
2419get- composer:
2520 file .managed:
Original file line number Diff line number Diff line change 31023102 'cli' : {
31033103 'ini' : '/usr/local/etc/php.ini'
31043104 },
3105+ 'composer' : {
3106+ 'required_modules' : [
3107+ 'filter' ,
3108+ 'json' ,
3109+ 'mbstring' ,
3110+ 'openssl' ,
3111+ 'phar' ,
3112+ ],
3113+ },
31053114 'pkgs' : {
31063115 'apache2' : 'mod_php' + freebsd_php_version ,
31073116 'composer_bin' : 'composer' ,
Original file line number Diff line number Diff line change 7474 cli :
7575 ini : /location/of/php-cli/php.ini
7676
77+ # php.composer
78+ # Some OS need modules to be installed
79+ composer :
80+ required_modules :
81+ - filter
82+ - json
83+ - mbstring
84+ - openssl
85+ - phar
86+
7787 # php-fpm settings
7888 fpm :
7989
You can’t perform that action at this time.
0 commit comments