postgresql
postgresql copied to clipboard
Documentation doesn't match up for user creation
Cookbook version
7.1.1
Chef-client version
n/a
Platform Details
n/a
Scenario:
Converging a recipe to create a user.
Steps to Reproduce:
Recipe includes this:
postgresql_user 'testuser1' do
user 'testuser1'
password node['password']
action :create
sensitive false
end
Expected Result:
- According to documentation, this will create a user called
testuser1 - According to code, this uses the
testuser1for logging in an applying the change to createtestuser1
Actual Result:
- I'm going to guess that the documentation should be updated to utilize the property
create_user
Yeah looks like the documentation is misleading here, user is the connection user, and createuser is the user that gets created, so the above code will try and connect to the database using the user you're about to connect with.
I think, the user property should probably get rename, connect_user or something similar :)
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.