From: Guilhem Lettron Date: Wed, 6 Mar 2013 17:08:43 +0000 (+0100) Subject: separate *-dbg packages and add an attribute to manage it X-Git-Tag: v0.2.0~39^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b87b391e0f8309ba0daec24d57f05ea3fe93dfd8;p=ceph-cookbooks.git separate *-dbg packages and add an attribute to manage it --- 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