Merge pull request #15 from Youscribe/separateDebug

separate *-dbg packages and add an attribute to manage it

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil
2013-03-14 10:27:46 -07:00
3 changed files with 16 additions and 3 deletions

1
attributes/default.rb Normal file
View File

@@ -0,0 +1 @@
default['ceph']['install_debug'] = true

View File

@@ -19,11 +19,17 @@
packages = %w{
ceph
ceph-dbg
ceph-common
ceph-common-dbg
}
if node['ceph']['install_debug']
packages_dbg = %w{
ceph-dbg
ceph-common-dbg
}
packages += packages_dbg
end
packages.each do |pkg|
package pkg do
action :upgrade

View File

@@ -21,10 +21,16 @@ include_recipe "apache2"
packages = %w{
radosgw
radosgw-dbg
libapache2-mod-fastcgi
}
if node['ceph']['install_debug']
packages_dbg = %w{
radosgw-dbg
}
packages += packages_dbg
end
packages.each do |pkg|
package pkg do
action :upgrade