#
-# Cookbook Name:: osqa
+# Cookbook:: osqa
# Recipe:: default
#
-# Copyright 2011, OpenStreetMap Foundation
+# Copyright:: 2011, OpenStreetMap Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# limitations under the License.
#
-include_recipe "tools"
+include_recipe "accounts"
include_recipe "apache"
include_recipe "memcached"
include_recipe "python"
+include_recipe "tools"
package "python-dev"
package "libmysqlclient-dev"
python_virtualenv python_directory
-python_package "django" do
+python_package "Django" do
python_virtualenv python_directory
version "1.6.11"
end
version "0.999"
end
-python_package "markdown" do
+python_package "Markdown" do
python_virtualenv python_directory
version "2.4"
end
version "1.53"
end
-python_package "python_openid" do
+python_package "python-openid" do
python_virtualenv python_directory
version "2.2.5"
end
-python_package "MySQL_python" do
+python_package "MySQL-python" do
python_virtualenv python_directory
version "1.2.3"
end
python_package "psycopg2" do
python_virtualenv python_directory
- version "2.4.5"
+ version "2.7.6.1"
end
python_package "South" do
apache_site site_name do
template "apache.erb"
directory directory
- variables :user => site_user, :group => site_group, :aliases => site_aliases
+ variables :user => site_user, :group => site_group, :aliases => site_aliases, :python_home => python_directory
end
directory directory do
action :sync
repository "https://git.openstreetmap.org/public/osqa.git"
revision "live"
+ depth 1
user site_user
group site_group
notifies :run, "execute[osqa-migrate]"