From 31694c3d90ce7418118a45ea5dd07cc3860ba297 Mon Sep 17 00:00:00 2001 From: Alexandre Marangone Date: Mon, 22 Apr 2013 14:16:06 -0700 Subject: [PATCH] Handle different package names for radosgw Signed-off-by: Alexandre Marangone --- recipes/radosgw.rb | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/recipes/radosgw.rb b/recipes/radosgw.rb index 2c17f31..97a108c 100644 --- a/recipes/radosgw.rb +++ b/recipes/radosgw.rb @@ -17,15 +17,22 @@ # 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| -- 2.47.3