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{
|
packages = %w{
|
||||||
ceph
|
ceph
|
||||||
ceph-dbg
|
|
||||||
ceph-common
|
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|
|
packages.each do |pkg|
|
||||||
package pkg do
|
package pkg do
|
||||||
action :upgrade
|
action :upgrade
|
||||||
|
|||||||
@@ -21,10 +21,16 @@ include_recipe "apache2"
|
|||||||
|
|
||||||
packages = %w{
|
packages = %w{
|
||||||
radosgw
|
radosgw
|
||||||
radosgw-dbg
|
|
||||||
libapache2-mod-fastcgi
|
libapache2-mod-fastcgi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if node['ceph']['install_debug']
|
||||||
|
packages_dbg = %w{
|
||||||
|
radosgw-dbg
|
||||||
|
}
|
||||||
|
packages += packages_dbg
|
||||||
|
end
|
||||||
|
|
||||||
packages.each do |pkg|
|
packages.each do |pkg|
|
||||||
package pkg do
|
package pkg do
|
||||||
action :upgrade
|
action :upgrade
|
||||||
|
|||||||
Reference in New Issue
Block a user