postgresql icon indicating copy to clipboard operation
postgresql copied to clipboard

Documentation doesn't match up for user creation

Open jtslear opened this issue 7 years ago • 2 comments

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:

Actual Result:

  • I'm going to guess that the documentation should be updated to utilize the property create_user

jtslear avatar Sep 27 '18 17:09 jtslear

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 :)

damacus avatar Oct 01 '18 09:10 damacus

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.

github-actions[bot] avatar Sep 30 '20 00:09 github-actions[bot]