Skip to content

Conversation

@gerhardsam
Copy link
Contributor

Creating the role before creating the database is mandatory because otherwise
granting the access right to the database fails.

Creating the role before creating the database is mandatory because otherwise
granting the access right to the database fails.
@igalic
Copy link
Contributor

igalic commented Feb 24, 2015

👍

1 similar comment
@AnthonyMastrean
Copy link

👍

@bemosior
Copy link
Contributor

I believe we experience the same issue:

Postgresql::Server::Database[fakedb]/Exec[/usr/pgsql-9.0/bin/createdb --port='5432' --owner='fakeowner' --template=template0  'fakedb']/returns: createdb: database creation failed: ERROR:  role "fakeowner" does not exist

After applying these changes, the issue was resolved.

cmurphy added a commit that referenced this pull request Feb 26, 2015
@cmurphy cmurphy merged commit b77c213 into puppetlabs:master Feb 26, 2015
@invalidusrname
Copy link

Thanks!

@gerhardsam gerhardsam deleted the create_role_before_db branch July 22, 2016 08:23
cegeka-jenkins pushed a commit to cegeka/puppet-postgresql that referenced this pull request Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants