Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Created March 12, 2013 17:22
Show Gist options
  • Save imsickofmaps/5144946 to your computer and use it in GitHub Desktop.
Save imsickofmaps/5144946 to your computer and use it in GitHub Desktop.
Chef script to get Ubuntu Precise 64bit ready for vumi-go pip install...
#
# Cookbook Name:: wcl-vumi-go
# Recipe:: default
#
# Copyright 2013, Western Cape Labs
#
# 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.
#
c = execute "curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add -" do
action :nothing
end
b = execute "bash -c 'echo deb http://apt.basho.com `lsb_release -sc` main > /etc/apt/sources.list.d/basho.list'" do
action :nothing
end
e = execute "apt-get update" do
action :nothing
end
c.run_action(:run)
b.run_action(:run)
e.run_action(:run)
case node['platform']
when "ubuntu","debian"
%w{build-essential curl python-all-dev python-virtualenv libpq-dev git rabbitmq-server redis-server protobuf-compiler riak}.each do |pkg|
package pkg do
action :install
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment