]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Install svgo on machines running the rails port
[chef.git] / cookbooks / dev / recipes / default.rb
index 62eac34c4e07cca9590b93f505fee5e0f2951602..2e51fa54625a26775ad04a33fc60b7f95476101d 100644 (file)
@@ -24,6 +24,7 @@ include_recipe "apache"
 include_recipe "passenger"
 include_recipe "git"
 include_recipe "mysql"
+include_recipe "nodejs"
 include_recipe "postgresql"
 
 package "php-apc"
@@ -41,6 +42,9 @@ package "php5-mysql"
 package "php5-pgsql"
 package "php5-sqlite"
 
+package "pngcrush"
+package "pngquant"
+
 package "python"
 package "python-argparse"
 package "python-beautifulsoup"
@@ -48,6 +52,9 @@ package "python-cheetah"
 package "python-dateutil"
 package "python-magic"
 package "python-psycopg2"
+package "python-gdal"
+
+nodejs_package "svgo"
 
 easy_install_package "geojson"
 
@@ -134,7 +141,6 @@ if node[:postgresql][:clusters][:"9.1/main"]
   end
 
   node[:dev][:rails].each do |name, details|
-    ruby node[:passenger][:ruby_version]
     database_name = details[:database] || "apis_#{name}"
     site_name = "#{name}.apis.dev.openstreetmap.org"
     rails_directory = "/srv/#{name}.apis.dev.openstreetmap.org"
@@ -175,7 +181,7 @@ if node[:postgresql][:clusters][:"9.1/main"]
         group "apis"
         mode 0644
         variables :site => site_name
-        notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
+        notifies :run, "execute[#{rails_directory}]"
       end
 
       apache_site site_name do