-
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
ALTER ROLE query is always ran #72
Comments
Its possibly postgresql but hard to say - can you show the full output of your run please? |
I'm running into this as well:
|
I don't think it's a permissions issue. I think it has to do with the query being used to verify the user's existence in the pg_shadow table. See line 82 of The If the
Then everything works. So I think this is a bug with the postgresql module? |
@jtopjian @lieutdan13 yeah, sounds like postgresql. You guys want to re-open this in that project? BTW - I get the feeling something was merged in recently to solve this ... have a try at the latest postgresql, or 'master' from github. |
@lieutdan13 Yes, I tested the change and it looks good. I'll be in meetings for the next 4 hours, so if you're able to open a bug before that, please do. :) @kbarber I'm testing against the latest postgresql module. |
@kbarber I am also using the latest postgresql module. I updated this morning. @jtopjian I will open a bug in that project Update: postgresql Issue: puppetlabs/puppetlabs-postgresql#216 |
Actually, I should keep this open until the source issue is solved. If only for tracking purposes. |
This is fixed with release 2.4.1 of puppetlabs/postgresql. |
I have the same issue running 2.4.1. I defined this role: postgresql::role {'pedrocr':
superuser => true,
createdb => true,
login => true,
require => Class["common::postgresql"],
} and common::postgresql is just: class common::postgresql {
class { '::postgresql':
charset => 'UTF8',
locale => 'en_US.UTF-8',
}
class { '::postgresql::server':
}
postgresql::database { ['template0', 'template1', 'postgres']:
update_charset => true,
}
} (it would be just "include postgresql::database" if it wasn't for bug #196) Here's the output of the run:
Could it be that the fix doesn't work if the role doesn't have a password at all? |
I'm not sure if this is a puppetlabs-puppetdb or a puppetlabs-postgresql bug, but...
Every time I run the puppetdb class with or without a specified password, the "ALTER ROLE" query is always run. This could be because the puppetdb user doesn't have proper access to the tables to check for user existence?
The text was updated successfully, but these errors were encountered: