Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion providers/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ def load_current_resource
@non_unique = bool(new_resource.non_unique, node['user']['non_unique'])
@create_group = bool(new_resource.create_group, node['user']['create_group'])
@ssh_keygen = bool(new_resource.ssh_keygen, node['user']['ssh_keygen'])
@ssh_keypair = bool(new_resource.ssh_keypair, node['user']['ssh_keypair'])
@group_add = bool(new_resource.groups, node['user']['groups'])
end

action :create do # ~FC017: LWRP does not notify when updated
user_resource :create
home_dir_resource :create
home_ssh_dir_resource :create if @ssh_keygen || !new_resource.ssh_keys.empty?
home_ssh_dir_resource :create if @ssh_keygen || @ssh_keypair || !new_resource.ssh_keys.empty?
authorized_keys_resource :create
keygen_resource :create
group_resource :create
Expand Down