Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Forked from cmaxw/chef-stacktrace.out
Last active December 26, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathenharvey/7148470 to your computer and use it in GitHub Desktop.
Save nathenharvey/7148470 to your computer and use it in GitHub Desktop.
#
# Cookbook Name:: calagator
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
include_recipe "database::postgresql"
application "calagator" do
path "/var/www/calagator"
owner "deploy"
group "deploy"
repository "https://github.com/cmaxw/calagator.git"
rails do
bundler true
end
passenger_apache2
end
postgresql_database 'calagator' do
connection(
:host => '127.0.0.1',
:port => 5432,
:username => 'postgres',
:password => node['postgresql']['password']['postgres']
)
action :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment