Skip to content

Now with support for current REE, Passenger, Oneiric and Lucid #5

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2bf8534
Improve idempotency by allowing ln to run if recipe is executed a sec…
sbleon Dec 22, 2011
f74b4b8
Switch to a version of git that doesn't 404.
sbleon Dec 22, 2011
5a2aaa6
Add compilation dependency for apache2 module.
sbleon Dec 22, 2011
0f281a6
Backup and recreate passenger.conf
sbleon Dec 22, 2011
772e88b
Changed path of validated location of apache2 module to match where i…
sbleon Dec 22, 2011
92588ea
Fix the way I replace passenger.conf
sbleon Dec 22, 2011
e75a8ab
Updated passenger version to one that currently gets downloaded. This…
sbleon Dec 22, 2011
81e51af
Sorry for the big commit! This includes many things:
sbleon Dec 23, 2011
37937d5
Comment pre-install SSLv2 patch.
sbleon Dec 26, 2011
e0fd59c
Switched from using "ruby_enterprise" as a dependency in favor of jus…
sbleon Dec 26, 2011
ae7c44d
Switch to generic 'ruby' metapackage name instead of specifying ruby_…
sbleon Dec 26, 2011
7879c53
Whoops! Shouldn't have changed that one "ruby_enterprise" in the requ…
sbleon Dec 26, 2011
9be58ff
Clean up dependencies, avoiding double "installing" message.
sbleon Dec 26, 2011
74f585f
Rename "scm" file to "git" so it's clear what it is.
sbleon Dec 26, 2011
706586e
Add github ssh keys for all users on system
sbleon Dec 26, 2011
dfeb635
Added some gems
sbleon Dec 27, 2011
1484587
Moved Mysql gem into its own package and file so it can be installed …
sbleon Dec 27, 2011
10c667b
Added mysql2 gem
sbleon Dec 28, 2011
7c0ddad
Added some missing verifiers. Standardized on gnutls SSL packages (in…
sbleon Dec 29, 2011
79e3185
Added postfix mail server
sbleon Jan 3, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added some missing verifiers. Standardized on gnutls SSL packages (in…
…stead of openssl).
  • Loading branch information
sbleon committed Dec 29, 2011
commit 7c0ddad48d6ed009a9e2c80575de6362c065f8ab
9 changes: 9 additions & 0 deletions config/stack/apache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
end

verify do
has_apt 'apache2'
has_executable '/usr/sbin/apache2'
end

Expand All @@ -15,6 +16,10 @@
package :apache2_prefork_dev do
description 'A dependency required by some packages.'
apt 'apache2-prefork-dev'

verify do
has_apt 'apache2-prefork-dev'
end
end

package :passenger, :provides => :appserver do
Expand Down Expand Up @@ -67,6 +72,10 @@

package :passenger_dependencies do
apt 'libcurl4-gnutls-dev' # Compilation dependency for apache module

verify do
has_apt 'libcurl4-gnutls-dev'
end
end

# These "installers" are strictly optional, I believe
Expand Down
4 changes: 4 additions & 0 deletions config/stack/essential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
apt 'build-essential' do
pre :install, 'apt-get update'
end

verify do
has_apt 'build-essential'
end
end
8 changes: 7 additions & 1 deletion config/stack/gems/curb_gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@

package :curb_dependencies do
requires :build_essential
apt %w(libcurl3 libcurl3-gnutls libcurl4-openssl-dev)
apt %w(libcurl3 libcurl3-gnutls libcurl4-gnutls-dev)

verify do
has_apt 'libcurl3'
has_apt 'libcurl3-gnutls'
has_apt 'libcurl4-gnutls-dev'
end
end
4 changes: 4 additions & 0 deletions config/stack/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
github_key = File.read(File.join(File.dirname(__FILE__), 'git', 'github_key.txt'))
# Don't require verification of github's ssh fingerprint for anyone on the system
push_text github_key, '/etc/ssh/ssh_known_hosts', :sudo => true

verify do
file_contains '/etc/ssh/ssh_known_hosts', 'github.com'
end
end
7 changes: 7 additions & 0 deletions config/stack/ruby_enterprise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@
package :ree_dependencies do
apt %w(zlib1g-dev libreadline-dev libssl-dev)
requires :build_essential

verify do
has_apt 'zlib1g-dev'
has_apt 'libreadline-dev'
has_apt 'libssl-dev'
has_apt 'curl'
end
end