Skip to content

Commit

Permalink
support arch in ruby and openssh
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Sep 7, 2010
1 parent cee056c commit 438d0f4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
5 changes: 4 additions & 1 deletion openssh/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
],
"debian": [

],
"arch": [

]
},
"dependencies": {
Expand All @@ -41,5 +44,5 @@
"recipes": {
"openssh": "Installs openssh"
},
"version": "0.7.2"
"version": "0.8.0"
}
4 changes: 2 additions & 2 deletions openssh/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs openssh"
version "0.7.2"
version "0.8.0"

recipe "openssh", "Installs openssh"

%w{ redhat centos fedora ubuntu debian }.each do |os|
%w{ redhat centos fedora ubuntu debian arch}.each do |os|
supports os
end
5 changes: 4 additions & 1 deletion openssh/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
packages = case node[:platform]
when "centos","redhat","fedora"
%w{openssh-clients openssh}
when "arch"
%w{openssh}
else
%w{openssh-client openssh-server}
end
Expand All @@ -30,7 +32,7 @@

service "ssh" do
case node[:platform]
when "centos","redhat","fedora"
when "centos","redhat","fedora","arch"
service_name "sshd"
else
service_name "ssh"
Expand All @@ -44,6 +46,7 @@
"centos" => { "default" => [ :restart, :reload, :status ] },
"redhat" => { "default" => [ :restart, :reload, :status ] },
"fedora" => { "default" => [ :restart, :reload, :status ] },
"arch" => { "default" => [ :restart ] },
"default" => { "default" => [:restart, :reload ] }
)
action [ :enable, :start ]
Expand Down
5 changes: 4 additions & 1 deletion ruby/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
],
"debian": [

],
"arch": [

]
},
"dependencies": {
Expand All @@ -41,5 +44,5 @@
"recipes": {
"ruby": "Installs ruby packages"
},
"version": "0.7.3"
"version": "0.8.0"
}
4 changes: 2 additions & 2 deletions ruby/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs ruby packages"
version "0.7.3"
version "0.8.0"

recipe "ruby", "Installs ruby packages"

%w{ centos redhat fedora ubuntu debian }.each do |os|
%w{ centos redhat fedora ubuntu debian arch}.each do |os|
supports os
end
2 changes: 2 additions & 0 deletions ruby/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
ruby-rdoc
ruby-mode
}
when "arch"
%w{ ruby-docs }
end

unless extra_packages.nil?
Expand Down

0 comments on commit 438d0f4

Please sign in to comment.