Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Fix connection info and a few other minor things
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 18, 2014

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent d42c390 commit 288b75d
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cookbooks/rubygems-database/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name 'rubygems-database'
maintainer 'RubyGems.org ops team'

version '0.0.4'
version '0.0.5'

depends 'database'
depends 'postgresql'
7 changes: 4 additions & 3 deletions cookbooks/rubygems-database/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
include_recipe 'rubygems'

include_recipe "postgresql::server"
include_recipe 'postgresql::server'
include_recipe 'postgresql::ruby'

stage = node.chef_environment

connection_info = {
:host => search(:node, "name:app01.#{stage}.rubygems.org")[0]['ipaddress'],
:host => '127.0.0.'1
:port => 5432,
:username => "rubygems_#{stage}",
:password => ""
@@ -17,7 +18,7 @@
end

postgresql_database_user "rubygems_#{stage}" do
connection connection_info
connection(connection_info)
password ""
action :create
end

0 comments on commit 288b75d

Please sign in to comment.