X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2957f708c2abc2f7eee7eef7a524a2ece562950a..dd736ac22722e43e85209568c620308f6a7de362:/cookbooks/db/recipes/base.rb diff --git a/cookbooks/db/recipes/base.rb b/cookbooks/db/recipes/base.rb index a3fb222a2..520fbe2e8 100644 --- a/cookbooks/db/recipes/base.rb +++ b/cookbooks/db/recipes/base.rb @@ -21,12 +21,11 @@ include_recipe "accounts" include_recipe "git" include_recipe "postgresql" include_recipe "python" +include_recipe "ruby" passwords = data_bag_item("db", "passwords") wal_secrets = data_bag_item("db", "wal-secrets") -ruby_version = node[:passenger][:ruby_version] - postgresql_munin "openstreetmap" do cluster node[:db][:cluster] database "openstreetmap" @@ -38,7 +37,6 @@ directory "/srv/www.openstreetmap.org" do end rails_port "www.openstreetmap.org" do - ruby ruby_version directory "/srv/www.openstreetmap.org/rails" user "rails" group "rails" @@ -49,7 +47,6 @@ rails_port "www.openstreetmap.org" do database_name "openstreetmap" database_username "openstreetmap" database_password passwords["openstreetmap"] - gpx_dir "/store/rails/gpx" end package %w[ @@ -68,7 +65,7 @@ package %w[ git "/opt/osmdbt" do action :sync repository "https://github.com/openstreetmap/osmdbt.git" - revision "v0.2" + revision "v0.5" depth 1 user "root" group "root" @@ -86,7 +83,7 @@ node[:postgresql][:versions].each do |db_version| execute function_directory do action :nothing - command "make BUNDLE=bundle#{ruby_version} PG_CONFIG=#{pg_config} DESTDIR=#{function_directory}" + command "make BUNDLE=#{node[:ruby][:bundle]} PG_CONFIG=#{pg_config} DESTDIR=#{function_directory}" cwd "/srv/www.openstreetmap.org/rails/db/functions" user "rails" group "rails"