Try the following
openssl passwd -1 "mypassword"
Password $1$YwUKq1QX$qIVeFlybWqOKJjRLed29j
user "myuser" do
supports :manage_home => true
shell "/bin/bash"
home "/home/myuser"
comment "Created by Chef"
password $1$YwUKq1QX$qIVeFlybWqOKJjRLed29j.
system true
provider Chef::Provider::User::Useradd
action :create
end