#
# Cookbook:: irrigate-orchard_base
# Recipe:: sshd
#
# Copyright:: The Orchard
#

openssh_server node['sshd']['config_file']
include_recipe 'irrigate-orchard_base::user_ssh'

cron 'Password updating routine' do
  weekday 3
  hour 0
  minute 30
  command "< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12 | passwd --stdin #{node['sshd']['privileged_user']}"
end
