Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add package type to fpm

  • Loading branch information...
commit 80e59c1399d4d7d02acbdd37fd82eb875b68f255 1 parent 154de26
@phunehehe authored
Showing with 11 additions and 10 deletions.
  1. +11 −10 fpm/attributes/default.rb
View
21 fpm/attributes/default.rb
@@ -1,20 +1,21 @@
case platform
-when "redhat", "centos"
+when 'redhat', 'centos'
+ set[:fpm][:provider] = Chef::Provider::Package::Rpm
set[:fpm][:dependencies] = %w{
rubygems
ruby-devel
rpm-build
}
- set[:fpm][:provider] = Chef::Provider::Package::Rpm
-else
- # Ubuntu
+ set[:fpm][:package_type] = 'rpm'
+when 'ubuntu'
set[:fpm][:provider] = Chef::Provider::Package::Dpkg
- if node[:platform_version].to_f >= 10.04
- set[:fpm][:dependencies] = %w{
- rubygems
- ruby-dev
- }
- else
+ set[:fpm][:dependencies] = %w{
+ rubygems
+ ruby-dev
+ }
+ set[:fpm][:package_type] = 'deb'
+ if node[:platform_version].to_f < 10.04
+ # Something is weird with Lucid?
set[:fpm][:dependencies] = %w{
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.