Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create role before database #565

Merged
merged 1 commit into from
Feb 26, 2015

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.

None yet

7 participants