Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

cannot load such file -- pg when creating a database #147

Open
c-castillo opened this issue Mar 25, 2015 · 0 comments
Open

cannot load such file -- pg when creating a database #147

c-castillo opened this issue Mar 25, 2015 · 0 comments

Comments

@c-castillo
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant