Skip to content

Instantly share code, notes, and snippets.

@kokuyouwind
Created June 7, 2014 05:04
Show Gist options
  • Save kokuyouwind/bcb965ab02e8aee6db1e to your computer and use it in GitHub Desktop.
Save kokuyouwind/bcb965ab02e8aee6db1e to your computer and use it in GitHub Desktop.
service "sshd" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
template "/etc/ssh/sshd_config" do
source "sshd_config.erb"
owner "root"
group "root"
notifies :reload, "service[sshd]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment