The chef_user will not work unless I specify :password attribute. I'll get 400 bad request error if I try to comment attribute out.
Net::HTTPServerException
------------------------
400 "Bad Request"
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/bb_chef_server_cluster/recipes/manage_rbac.rb
63: chef_user user do
64: display_name user
65: email "#{user}@#{org}.com"
66: #password "pass0wrd"
67: source_key_path key_path
68: chef_server url_root
69: action :nothing
70: subscribes :create, 'ruby_block[only modify rbac content on master backend]', :immediately
71: end
However even though the user is already created it keeps trying to update password in sequential chef-client runs. I can not get this resource to skip and report (update to date).
* chef_user[poliva] action create
- update user poliva at https://127.0.0.1/users
- update password from nil to "passw0rd"
* chef_user[anbrown] action create
- update user anbrown at https://127.0.0.1/users
- update password from nil to "passw0rd"
* chef_user[bbuczynski] action create
- update user bbuczynski at https://127.0.0.1/users
- update password from nil to "passw0rd"
* chef_user[eyurchenko] action create
- update user eyurchenko at https://127.0.0.1/users
- update password from nil to "passw0rd"
I noticed related comment here, so maybe known already, but didn't see any issue reported on this.
https://github.com/chef/cheffish/blob/master/lib/chef/resource/chef_user.rb#L25
The chef_user will not work unless I specify
:passwordattribute. I'll get 400 bad request error if I try to comment attribute out.However even though the user is already created it keeps trying to update password in sequential chef-client runs. I can not get this resource to skip and report (update to date).
I noticed related comment here, so maybe known already, but didn't see any issue reported on this.
https://github.com/chef/cheffish/blob/master/lib/chef/resource/chef_user.rb#L25