Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new $tmp_dir option for handling '/tmp' with noexec, and a bug fix. #105

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion manifests/compile.pp
Expand Up @@ -12,6 +12,7 @@
$keep = false,
$configure_opts = '--disable-install-doc',
$bundler = present,
$tmp_dir = "/tmp"
) {

# Workaround http://projects.puppetlabs.com/issues/9848
Expand Down Expand Up @@ -72,7 +73,7 @@
user => $user,
group => $group,
cwd => $home_path,
environment => [ "HOME=${home_path}", "CONFIGURE_OPTS=${configure_opts}" ],
environment => [ "HOME=${home_path}", "CONFIGURE_OPTS=${configure_opts}", "TMPDIR=$tmp_dir" ],
creates => "${versions}/${ruby}",
path => $path,
logoutput => 'on_failure',
Expand Down