Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.kitchen/
.kitchen.local.yml
tmp/
.librarian/
21 changes: 21 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 9000, host: 9000}]

provisioner:
name: chef_solo

platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]

suites:
- name: default
run_list:
- recipe[sentry::instance]
8 changes: 8 additions & 0 deletions Cheffile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
#^syntax detection

site 'http://community.opscode.com/api/v1'

cookbook 'apt'
cookbook 'yum'
cookbook 'sentry', :path => '.'
21 changes: 21 additions & 0 deletions Cheffile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SITE
remote: http://community.opscode.com/api/v1
specs:
apt (2.3.0)
build-essential (1.4.2)
python (1.4.4)
build-essential (>= 0.0.0)
yum (>= 0.0.0)
yum (3.0.0)

PATH
remote: .
specs:
sentry (0.1.5)
python (>= 0.0.0)

DEPENDENCIES
apt (>= 0)
sentry (>= 0)
yum (>= 0)

6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# A sample Gemfile
source "https://rubygems.org"

gem "test-kitchen"
gem "kitchen-vagrant"
gem "librarian-chef"
98 changes: 98 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
GEM
remote: https://rubygems.org/
specs:
archive-tar-minitar (0.5.2)
chef (11.8.2)
chef-zero (~> 1.6, >= 1.6.2)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
highline (~> 1.6, >= 1.6.9)
json (>= 1.4.4, <= 1.7.7)
mime-types (~> 1.16)
mixlib-authentication (~> 1.3)
mixlib-cli (~> 1.3)
mixlib-config (~> 2.0)
mixlib-log (~> 1.3)
mixlib-shellout (~> 1.2)
net-ssh (~> 2.6)
net-ssh-multi (~> 1.1.0)
ohai (~> 6.0)
pry (~> 0.9)
puma (~> 1.6)
rest-client (>= 1.0.4, < 1.7.0)
yajl-ruby (~> 1.1)
chef-zero (1.7.2)
hashie (~> 2.0)
json
mixlib-log (~> 1.3)
moneta (< 0.7.0)
rack
coderay (1.1.0)
diff-lcs (1.2.5)
erubis (2.7.0)
hashie (2.0.5)
highline (1.6.20)
ipaddress (0.8.0)
json (1.7.7)
kitchen-vagrant (0.14.0)
test-kitchen (~> 1.0)
librarian (0.1.1)
highline
thor (~> 0.15)
librarian-chef (0.0.2)
archive-tar-minitar (>= 0.5.2)
chef (>= 0.10)
librarian (~> 0.1.0)
method_source (0.8.2)
mime-types (1.25.1)
mixlib-authentication (1.3.0)
mixlib-log
mixlib-cli (1.4.0)
mixlib-config (2.1.0)
mixlib-log (1.6.0)
mixlib-shellout (1.3.0)
moneta (0.6.0)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-multi (1.1)
net-ssh (>= 2.1.4)
net-ssh-gateway (>= 0.99.0)
ohai (6.20.0)
ipaddress
mixlib-cli
mixlib-config
mixlib-log
mixlib-shellout
systemu (~> 2.5.2)
yajl-ruby
pry (0.9.12.4)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
puma (1.6.3)
rack (~> 1.2)
rack (1.5.2)
rest-client (1.6.7)
mime-types (>= 1.16)
safe_yaml (0.9.7)
slop (3.4.7)
systemu (2.5.2)
test-kitchen (1.1.1)
mixlib-shellout (~> 1.2)
net-scp (~> 1.1)
net-ssh (~> 2.7)
safe_yaml (~> 0.9)
thor (~> 0.18)
thor (0.18.1)
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
kitchen-vagrant
librarian-chef
test-kitchen
5 changes: 3 additions & 2 deletions definitions/sentry_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class Chef::Recipe
:settings => {} do

Chef::Log.info("Making sentry config for: #{params[:name]}")
include_recipe "python::virtualenv"
include_recipe "python::pip"
include_recipe "python"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also install Python and any development packages necessary for pip.

include_recipe "sentry::default"

virtualenv_dir = params[:virtualenv_dir] or node["sentry"]["virtulenv"]
Expand Down Expand Up @@ -92,6 +91,8 @@ class Chef::Recipe
end
elsif db_options['ENGINE'] == 'django.db.backends.oracle'
driver_name = 'cx_Oracle'
elsif db_options['ENGINE'] == 'django.db.backends.sqlite3'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default engine.

# noop
else
raise "You need specify database ENGINE"
end
Expand Down