Skip to content

Commit 7577dcd

Browse files
authored
Merge pull request #8 from EdwinHoksberg/jobsParameter
Add parallel jobs parameter
2 parents d1b563d + 21b3db6 commit 7577dcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)