Permalink
Browse files

Changed installation verification for mysql and memcached to simply c…

…heck for the respective executable binaries, this allows the user to tweak configuration on a per-slice basis and doesn't rely on a memcached or mysql process to be actually running.

Readded installation verification for ruby_enterprise.
Added libmemcached to the policy list rather than it sitting idle for no reason.
  • Loading branch information...
benschwarz committed Dec 30, 2008
1 parent 104c323 commit d1e8b8282c205a13eb47922546c18f15ffdf685b
Showing with 11 additions and 7 deletions.
  1. +1 −0 config/install.rb
  2. +2 −2 config/stack/memcached.rb
  3. +1 −1 config/stack/mysql.rb
  4. +7 −4 config/stack/ruby_enterprise.rb
View
@@ -9,6 +9,7 @@
requires :webserver
requires :scm
requires :memcached
+ requires :libmemcached
requires :ruby_enterprise
end
@@ -5,11 +5,11 @@
post :install, "/etc/init.d/memcached start"
verify do
- has_process "memcached"
+ has_executable 'memcached'
end
end
package :libmemcached do
source 'http://download.tangent.org/libmemcached-0.25.tar.gz'
- requires :memcached
+ requires :memcached_daemon
end
View
@@ -3,7 +3,7 @@
apt %w( mysql-server mysql-client libmysqlclient15-dev )
verify do
- has_process 'mysql'
+ has_executable 'mysql'
end
end
@@ -19,12 +19,15 @@
%w(ruby gem rake rails).each do |bin|
post :install, "ln -s /opt/ruby-enterprise-#{version}/bin/#{bin} /usr/local/bin/"
end
+
+ # Symlink for other binaries
+ #post :install "sudo ln -s /opt/ruby-enterprise-#{version}/bin/ /usr/local/bin/RE-binaries"
end
- # verify do
- # has_directory "/opt/ruby-enterprise-#{version}"
- # has_executable "/opt/ruby-enterprise-#{version}/bin/ruby"
- # end
+ verify do
+ has_directory "/opt/ruby-enterprise-#{version}"
+ has_executable "/opt/ruby-enterprise-#{version}/bin/ruby"
+ end
requires :apache
requires :passenger

0 comments on commit d1e8b82

Please sign in to comment.