]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/backend.rb
Update chef server package URL
[chef.git] / cookbooks / web / recipes / backend.rb
index ed80fd21d3852325114067ec6385723ff00f3594..b059d4f4435a7e126c28ec3987933c08594ef3c9 100644 (file)
 #
 
 include_recipe "memcached"
 #
 
 include_recipe "memcached"
+include_recipe "apache::ssl"
 include_recipe "web::rails"
 include_recipe "web::cgimap"
 
 include_recipe "web::rails"
 include_recipe "web::cgimap"
 
+web_passwords = data_bag_item("web", "passwords")
+
 apache_module "fastcgi-handler"
 apache_module "remoteip"
 apache_module "rewrite"
 apache_module "fastcgi-handler"
 apache_module "remoteip"
 apache_module "rewrite"
@@ -31,6 +34,7 @@ end
 
 apache_site "www.openstreetmap.org" do
   template "apache.backend.erb"
 
 apache_site "www.openstreetmap.org" do
   template "apache.backend.erb"
+  variables :secret_key_base => web_passwords["secret_key_base"]
 end
 
 node.set[:memcached][:ip_address] = node.internal_ipaddress
 end
 
 node.set[:memcached][:ip_address] = node.internal_ipaddress