separate *-dbg packages and add an attribute to manage it
This commit is contained in:
parent
eb75034b02
commit
b87b391e0f
1
attributes/default.rb
Normal file
1
attributes/default.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
default['ceph']['install_debug'] = true
|
@ -19,10 +19,16 @@
|
|||||||
|
|
||||||
packages = %w{
|
packages = %w{
|
||||||
ceph
|
ceph
|
||||||
ceph-dbg
|
|
||||||
ceph-common
|
ceph-common
|
||||||
|
}
|
||||||
|
|
||||||
|
if node['ceph']['install_debug']
|
||||||
|
packages_dbg = %w{
|
||||||
|
ceph-dbg
|
||||||
ceph-common-dbg
|
ceph-common-dbg
|
||||||
}
|
}
|
||||||
|
packages = packages + packages_dbg
|
||||||
|
end
|
||||||
|
|
||||||
packages.each do |pkg|
|
packages.each do |pkg|
|
||||||
package pkg do
|
package pkg do
|
||||||
|
@ -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 + packages_dbg
|
||||||
|
end
|
||||||
|
|
||||||
packages.each do |pkg|
|
packages.each do |pkg|
|
||||||
package pkg do
|
package pkg do
|
||||||
action :upgrade
|
action :upgrade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user