Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Customizing my stack

  • Loading branch information...
commit 3400ba5a1b6383c0dcea9f87e2cde8c42b7dcecf 1 parent 7172ad2
Lucas Húngaro authored
12 config/install.rb
... ... @@ -1,16 +1,16 @@
1 1 # Require our stack
2   -%w(essential apache scm ruby_enterprise memcached postgresql mysql).each do |r|
  2 +%w(essential apache scm ruby_enterprise memcached mysql).each do |r|
3 3 require File.join(File.dirname(__FILE__), 'stack', r)
4 4 end
5 5
6 6 # What we're installing to your server
7 7 # Take what you want, leave what you don't
8   -# Build up your own and strip down your server until you get it right.
  8 +# Build up your own and strip down your server until you get it right.
9 9 policy :passenger_stack, :roles => :app do
10 10 requires :webserver # Apache
11 11
12 12 requires :apache_etag_support # == Apache extras
13   - requires :apache_deflate_support # Read about these specialties in
  13 + requires :apache_deflate_support # Read about these specialties in
14 14 requires :apache_expires_support # stack/apache.rb
15 15
16 16 requires :appserver # Passenger
@@ -31,7 +31,7 @@
31 31 recipes 'deploy'
32 32 end
33 33 end
34   -
  34 +
35 35 # source based package installer defaults
36 36 source do
37 37 prefix '/usr/local'
@@ -40,9 +40,9 @@
40 40 end
41 41 end
42 42
43   -# Depend on a specific version of sprinkle
  43 +# Depend on a specific version of sprinkle
44 44 begin
45   - gem 'sprinkle', ">= 0.2.1"
  45 + gem 'sprinkle', ">= 0.2.1"
46 46 rescue Gem::LoadError
47 47 puts "sprinkle 0.2.1 required.\n Run: `sudo gem install sprinkle`"
48 48 exit
2  config/stack/apache.rb
@@ -18,7 +18,7 @@
18 18
19 19 package :passenger, :provides => :appserver do
20 20 description 'Phusion Passenger (mod_rails)'
21   - version '2.2.2'
  21 + version '2.2.4'
22 22 gem 'passenger' do
23 23 post :install, 'echo -en "\n\n\n\n" | sudo passenger-install-apache2-module'
24 24
6 config/stack/memcached.rb
... ... @@ -1,16 +1,16 @@
1 1 package :memcached_daemon, :provides => :memcached do
2 2 description 'Memcached, a distributed memory object store'
3 3 apt %w( memcached )
4   -
  4 +
5 5 post :install, "/etc/init.d/memcached start"
6 6 post :install, "sudo ldconfig"
7   -
  7 +
8 8 verify do
9 9 has_executable 'memcached'
10 10 end
11 11 end
12 12
13 13 package :libmemcached do
14   - source 'http://download.tangent.org/libmemcached-0.25.tar.gz'
  14 + source 'http://download.tangent.org/libmemcached-0.31.tar.gz'
15 15 requires :memcached_daemon
16 16 end
12 config/stack/ruby_enterprise.rb
... ... @@ -1,24 +1,24 @@
1 1 package :ruby_enterprise do
2 2 description 'Ruby Enterprise Edition'
3   - version '1.8.6-20090421'
4   -
  3 + version '1.8.6-20090610'
  4 +
5 5 install_path = "/usr/local/ruby-enterprise"
6 6 binaries = %w(erb gem irb passenger-config passenger-install-apache2-module passenger-make-enterprisey passenger-memory-stats passenger-spawn-server passenger-status passenger-stress-test rackup rails rake rdoc ree-version ri ruby testrb)
7 7 source "http://rubyforge.org/frs/download.php/55511/ruby-enterprise-#{version}.tar.gz" do
8 8 custom_install 'sudo ./installer --auto=/usr/local/ruby-enterprise'
9   -
  9 +
10 10 binaries.each {|bin| post :install, "ln -s #{install_path}/bin/#{bin} /usr/local/bin/#{bin}" }
11 11 end
12   -
  12 +
13 13 verify do
14 14 has_directory install_path
15 15 has_executable "#{install_path}/bin/ruby"
16 16 binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{install_path}/bin/#{bin}" }
17 17 end
18   -
  18 +
19 19 requires :ree_dependencies
20 20 end
21 21
22   -package :ree_dependencies do
  22 +package :ree_dependencies do
23 23 apt %w(zlib1g-dev libreadline5-dev libssl-dev)
24 24 end
4 config/stack/scm.rb
... ... @@ -1,9 +1,9 @@
1 1 package :git, :provides => :scm do
2 2 description 'Git Distributed Version Control'
3   - version '1.6.1'
  3 + version '1.6.4'
4 4 source "http://kernel.org/pub/software/scm/git/git-#{version}.tar.gz"
5 5 requires :git_dependencies
6   -
  6 +
7 7 verify do
8 8 has_file '/usr/local/bin/git'
9 9 end

0 comments on commit 3400ba5

Please sign in to comment.
Something went wrong with that request. Please try again.