Skip to content

Instantly share code, notes, and snippets.

@flooose
Created June 18, 2010 12:37
Show Gist options
  • Save flooose/443591 to your computer and use it in GitHub Desktop.
Save flooose/443591 to your computer and use it in GitHub Desktop.
exec { "/opt/ree.bash":
cwd => "/opt",
creates => "/opt/ruby-ee/bin/ruby",
logoutput => on_failure,
timeout => "-1",
path => "/opt:/opt/ruby-ee/bin:/opt/ruby-ee/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
exec { "/opt/ruby-ee/bin/passenger-install-nginx-module --auto --prefix=/opt/nginx --auto-download":
require => Exec["/opt/ree.bash"] # THIS LINE MADE IT WORK
cwd => "/opt",
creates => "/opt/nginx",
logoutput => on_failure,
onlyif => "test -e /opt/ruby-ee/bin/ruby",
timeout => "-1",
path => "/opt:/opt/ruby-ee/bin:/opt/ruby-ee/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment