]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
separate *-dbg packages and add an attribute to manage it
authorGuilhem Lettron <guilhem@lettron.fr>
Wed, 6 Mar 2013 17:08:43 +0000 (18:08 +0100)
committerGuilhem Lettron <guilhem@lettron.fr>
Wed, 6 Mar 2013 17:12:22 +0000 (18:12 +0100)
attributes/default.rb [new file with mode: 0644]
recipes/default.rb
recipes/radosgw.rb

diff --git a/attributes/default.rb b/attributes/default.rb
new file mode 100644 (file)
index 0000000..29aa1c4
--- /dev/null
@@ -0,0 +1 @@
+default['ceph']['install_debug'] = true
index 83efa3820877f2d0df9302c1797c38a27cdf74c7..38ec3577d367bb6012c661570a7c5eab4faa8338 100644 (file)
                        
 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
index dcc209386cad60625c1e086b4ab7e652aa885011..b1bedb2ccd2282fe92180bc2fb169e8820674b19 100644 (file)
@@ -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