chef-postgresql icon indicating copy to clipboard operation
chef-postgresql copied to clipboard

cannot load such file -- pg when creating a database

Open c-castillo opened this issue 10 years ago • 0 comments

Hi,

I'm using the postgresql_database LWRP, and when creating a database, I got an error:

==> my_web: LoadError
==> my_web:
==> my_web: ---------
==> my_web: cannot load such file -- pg

Here is my recipe:

include_recipe "postgresql::libpq"
include_recipe "postgresql::server"

db_config =  data_bag_item('database', 'myweb')

 postgresql_database db_config["database_production"] do
   owner db_config["username_production"]
   encoding 'utf8'
   template 'template0'
 end

c-castillo avatar Mar 25 '15 16:03 c-castillo