File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,13 @@ Disabled on opensuse need server:php:extensions repo
502
502
Installs the php-memcached package.
503
503
Disabled on opensuse need server:php: extensions repo
504
504
505
+ ``php.ng.module ``
506
+ --------------------
507
+
508
+ Calls ``php.ng.<name> `` for each entry in ``php:ng:modules `` if available, or
509
+ try to install the matching packages that can be set via from
510
+ ``php:ng:lookup:pkgs ``
511
+
505
512
``php.ng.mongo ``
506
513
--------------------
507
514
Original file line number Diff line number Diff line change
1
+ {% from " php/ng/map.jinja" import php with context % }
2
+
3
+ {% set modules = salt[' pillar.get' ](' php:ng:modules' ) or [] % }
4
+ {% set base_name = ' php.ng.' % }
5
+ {% set existing_states = salt[' cp.list_states' ]() % }
6
+
7
+ {% set includes = [] % }
8
+ {% set install = [] % }
9
+
10
+ {% for module in modules % }
11
+ {% set state = base_name ~ module % }
12
+ {% if state in existing_states % }
13
+ {% do includes.append(state) % }
14
+ {% else % }
15
+ {% do install.append(module) % }
16
+ {% endif % }
17
+ {% endfor % }
18
+
19
+ include: {{ includes| json }}
20
+
21
+ {% for state in install % }
22
+ {% include " php/ng/installed.jinja" % }
23
+ {% endfor % }
Original file line number Diff line number Diff line change @@ -178,6 +178,15 @@ php:
178
178
'CLI Server':
179
179
cli_server_color: 'On'
180
180
181
+ # List of modules to install via php.ng.modules
182
+ modules:
183
+ # Calls `php.ng.<name>` if available, or try to install the matching
184
+ # packages that can be set via from php:ng:lookup:pkgs
185
+ - cli
186
+ - fpm
187
+ - curl
188
+ - mysql
189
+
181
190
# When using php.ng.apache2 on FreeBSD:
182
191
# Set this to False if you're not using apache-formula
183
192
use_apache_formula: True
You can’t perform that action at this time.
0 commit comments