diff --git a/README.md b/README.md index 7b055fd..f99ea68 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Requires the following boxen modules: * `pcre` * `libpng` * `mysql` +* `openssl` The following boxen modules are required if optional PHP extensions are used: diff --git a/lib/puppet/provider/php_version/php_source.rb b/lib/puppet/provider/php_version/php_source.rb index d1638df..645cb50 100644 --- a/lib/puppet/provider/php_version/php_source.rb +++ b/lib/puppet/provider/php_version/php_source.rb @@ -263,7 +263,7 @@ def get_configure_args(version, install_path, config_path) "--with-libedit", "--with-mhash", "--with-curl", - "--with-openssl=/usr", + "--with-openssl=#{@resource[:homebrew_path]}/opt/openssl", "--with-bz2=/usr", "--with-mysql-sock=/tmp/mysql.sock", diff --git a/manifests/version.pp b/manifests/version.pp index 1eff4dc..428d46c 100644 --- a/manifests/version.pp +++ b/manifests/version.pp @@ -143,6 +143,7 @@ Package['boxen/brews/zlibphp'], Package['autoconf'], Package['boxen/brews/autoconf213'], + Package['openssl'], ], notify => Exec["phpenv-rehash-post-install-${patch_version}"], configure_params => $configure_params,