]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Handle different package names for radosgw
authorAlexandre Marangone <alexandre.marangone@inktank.com>
Mon, 22 Apr 2013 21:16:06 +0000 (14:16 -0700)
committerAlexandre Marangone <alexandre.marangone@inktank.com>
Mon, 22 Apr 2013 21:16:06 +0000 (14:16 -0700)
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
recipes/radosgw.rb

index 2c17f31d9f4643042e3870a26ec701570beb81e7..97a108c866a609e9457b0c8e18aba253b3a97784 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-packages = %w{
-  radosgw
-}
+case node['platform_family']
+when "debian"
+  packages = %w{
+    radosgw
+  }
 
-if node['ceph']['install_debug']
-  packages_dbg = %w{
-    radosgw-dbg
+  if node['ceph']['install_debug']
+    packages_dbg = %w{
+      radosgw-dbg
+    }
+    packages += packages_dbg
+  end
+when "rhel","fedora","suse"
+  packages = %w{
+    ceph-radosgw
   }
-  packages += packages_dbg
 end
 
 packages.each do |pkg|