user 'foox' do comment 'test me' uid '6711' home '/home/foox' shell '/bin/bash' password '' end directory "/home/foox" do owner "foox" group "foox" mode 00755 action :create end directory "/home/foox/.ssh" do owner "foox" group "foox" mode 00600 action :create end file '/home/foox/.ssh/authorized_keys' do owner "foox" group "foox" mode "00600" content IO.read('/root/.ssh/authorized_keys') action :create end