Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.
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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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