From b87b391e0f8309ba0daec24d57f05ea3fe93dfd8 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Wed, 6 Mar 2013 18:08:43 +0100 Subject: [PATCH] separate *-dbg packages and add an attribute to manage it --- attributes/default.rb | 1 + recipes/default.rb | 10 ++++++++-- recipes/radosgw.rb | 8 +++++++- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 attributes/default.rb diff --git a/attributes/default.rb b/attributes/default.rb new file mode 100644 index 0000000..29aa1c4 --- /dev/null +++ b/attributes/default.rb @@ -0,0 +1 @@ +default['ceph']['install_debug'] = true diff --git a/recipes/default.rb b/recipes/default.rb index 83efa38..38ec357 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -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 + packages_dbg +end + packages.each do |pkg| package pkg do action :upgrade diff --git a/recipes/radosgw.rb b/recipes/radosgw.rb index dcc2093..b1bedb2 100644 --- a/recipes/radosgw.rb +++ b/recipes/radosgw.rb @@ -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 + packages_dbg +end + packages.each do |pkg| package pkg do action :upgrade