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:
1
attributes/default.rb
Normal file
1
attributes/default.rb
Normal file
@@ -0,0 +1 @@
|
||||
default['ceph']['install_debug'] = true
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user