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

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

@c-castillo

Description

@c-castillo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions