projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf255e5
)
Treat ssh as an upstart managed service on 14.04
author
Tom Hughes
<tom@compton.nu>
Mon, 2 Jun 2014 23:41:15 +0000
(
00:41
+0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 2 Jun 2014 23:41:15 +0000
(
00:41
+0100)
cookbooks/openssh/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/openssh/recipes/default.rb
b/cookbooks/openssh/recipes/default.rb
index 432da265f91449c33538667d56c43ac215719741..0bae591ceb4d2ea4c973b202fda626fb517074ad 100644
(file)
--- a/
cookbooks/openssh/recipes/default.rb
+++ b/
cookbooks/openssh/recipes/default.rb
@@
-24,6
+24,9
@@
package "openssh-client"
package "openssh-server"
service "ssh" do
+ if node[:lsb][:release].to_f >= 14.04
+ provider Chef::Provider::Service::Upstart
+ end
action [ :enable, :start ]
supports :status => true, :restart => true, :reload => true
end