-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrected the chkpass recipe and added recipes for citext and cube ex…
…tensions
- Loading branch information
Ines Sombra
committed
Oct 10, 2011
1 parent
d6cb5ad
commit b6f43c1
Showing
5 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
define :postgresql9_citext do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
username "postgres" | ||
filename "/usr/share/postgresql-9.0/contrib/citext.sql" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
define :postgresql9_cube do | ||
dbname_to_use = params[:name] | ||
|
||
load_sql_file do | ||
db_name dbname_to_use | ||
username "postgres" | ||
filename "/usr/share/postgresql-9.0/contrib/cube.sql" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
define :load_sql_file, :db_name => nil, :filename => nil do | ||
define :load_sql_file, :db_name => nil, :filename => nil, :username => "deploy" do | ||
db_name = params[:db_name] | ||
filename = params[:filename] | ||
userperms = params[:username] | ||
|
||
execute "Postgresql loading file #{filename}" do | ||
command "psql -U deploy -d #{db_name} -f #{filename}" | ||
execute "Postgresql loading file #{filename} on database #{db_name}" do | ||
command "psql -U #{userperms} -d #{db_name} -f #{filename}" | ||
# Chef::Log.info "psql -U #{userperms} -d #{db_name} -f #{filename}" | ||
end | ||
end |