Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Solutions for install django 1.3.1 in the Vagrant
#
# Cookbook Name:: django
# Recipe:: default
#
# Copyright 2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include_recipe "apache2"
include_recipe "apache2::#{node[:django][:web_server]}"
include_recipe "python"
# package "python-django" do
# action :install
# end
bash "install_django13" do
user "vagrant"
cwd "/tmp"
code <<-EOH
wget http://pypi.python.org/packages/source/D/Django/Django-1.3.1.tar.gz#md5=62d8642fd06b9a0bf8544178f8500767
tar -zxf Django-1.3.1.tar.gz
cd Django-1.3.1
sudo python setup.py install
EOH
end
#
# Cookbook Name:: django
# Recipe:: default
#
# Copyright 2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
include_recipe "apache2"
include_recipe "apache2::#{node[:django][:web_server]}"
include_recipe "python"
# package "python-django" do
# action :install
# end
bash "install_django" do
user "vagrant"
code <<-EOH
sudo pip install django
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment