Skip to content

Commit 21b3db6

Browse files
committed
Add parallel jobs parameter
This can significantly decrease build times on systems with more then 1 processor core. Default value is the amount of cores a system has.
1 parent d1b563d commit 21b3db6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: manifests/install.pp

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
$build_parameters = undef,
2020
$php_inis = undef,
2121
$install_dir = '/opt/phpbrew',
22+
$jobs = $::processorcount,
2223
) {
2324
require phpbrew
2425

@@ -37,7 +38,7 @@
3738
}
3839

3940
exec { "install php-${php_version}":
40-
command => "/usr/bin/sudo PHPBREW_ROOT=${install_dir} /usr/bin/phpbrew install --old php-${php_version} +default +intl ${extra_params}",
41+
command => "/usr/bin/sudo PHPBREW_ROOT=${install_dir} /usr/bin/phpbrew install --jobs=${jobs} --old php-${php_version} +default +intl ${extra_params}",
4142
creates => "${install_dir}/php/php-${php_version}/bin/php",
4243
timeout => 0,
4344
}

0 commit comments

Comments
 (0)