Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'chef/cookbooks/diaspora/recipes/bootstrap.rb')
-rw-r--r--chef/cookbooks/diaspora/recipes/bootstrap.rb56
1 files changed, 56 insertions, 0 deletions
diff --git a/chef/cookbooks/diaspora/recipes/bootstrap.rb b/chef/cookbooks/diaspora/recipes/bootstrap.rb
new file mode 100644
index 000000000..5f9852740
--- /dev/null
+++ b/chef/cookbooks/diaspora/recipes/bootstrap.rb
@@ -0,0 +1,56 @@
+common_pkgs = [
+ "cpio",
+ "gcc-c++",
+ "htop",
+ "psmisc",
+ "screen",
+ "bzip2"
+]
+
+dev_pkgs = value_for_platform(
+ "debian" => {
+ "default" => [
+ "libxml2-dev",
+ "libxslt-dev",
+ "libssl-dev",
+ "libcurl4-openssl-dev"
+ ]
+ },
+ "centos" => {
+ "default" => [
+ "libxml2-devel",
+ "libxslt-devel",
+ "openssl-devel",
+ ]
+ }
+)
+
+execute "apt-get update" do
+ action :nothing
+end.run_action(:run) if platform?("debian")
+
+common_pkgs.each do |pkg|
+ package pkg
+end
+
+dev_pkgs do |pkg|
+ package pkg
+end
+
+def harden_ruby(ruby_string)
+ Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
+ link "/usr/local/bin/#{file.split('/').last}" do
+ to file
+ end
+ end
+ Dir.glob("/usr/local/rvm/gems/#{ruby_string}/bin/*").each do |file|
+ link "/usr/local/bin/#{file.split('/').last}" do
+ to file
+ end
+ end
+
+end
+
+harden_ruby("ree-1.8.7-2010.02")
+
+include_recipe "diaspora::java"