-
Notifications
You must be signed in to change notification settings - Fork 230
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
Ensure db and db users created before validation #125
Conversation
Ensure that for PostgreSQL backends, the database validation functions are not run until the initial database creation and user role creation has been completed. Closes-Bug: #1298605
|
@rickerc can you give a little more details about the reason behind this change? |
|
@rickerc ping |
|
without it, when using a Postgres backend the validation gets run before the db role is there, so the validation fails: |
|
@rickerc we use this module for our own testing for PuppetDB proper, and we haven't seen such a setup issue yet. Is there a specific test that is breaking that shows this problem? If not can we get it added? Can you provide some sample manifest code and other setup details to reproduce? |
|
@rickerc ping |
|
No response from @rickerc, closing. Please re-open once you can provide the details (or tests) necessary to reproduce. |
|
This happens for me too. What does it for me: class profile::puppetmaster { |
|
We have the same issue. This is how we currently use puppetdb... class profile::puppetmaster::puppetdb { This fails with the same errors/issues as mentioned earlier. We also tried the following, which shouldn't be needed since a before => is present in puppetdb::database::postgresql class {'puppetdb::server': No luck. Any ideas? |
|
Another "me too". You can clearly see the validation is done before the role is created and the permissions set up. So it's just an ordering issue. @kbarber maybe in your case the order just happens to work out better? The right fix would appear to be ensuring the database is fully set up before validation is done. Please reopen the issue. |
Ensure db and db users created before validation
|
Would it be possible to release a maintenance version containing this fix? Right now I'm trying to use the modules as present on Forge and it doesn't work at all, I had to resort to downloading the master tarball and installing from it. |
Ensure that for PostgreSQL backends, the database validation functions
are not run until the initial database creation and user role creation
has been completed.
Closes-Bug: #1298605