
This cookbook needed to be brought up to the standard of the other cookbooks in the repo. * Adding .gitreview * Normalizing .rubocop.yml * Normalizing Gemfile * Normalizing metadata.rb * Normalizing .gitignore * Adding specs/ directory and spec_helper.rb * Fixed all rubocop errors Change-Id: Ica7c525aae5fbd5c441ce50cff36046c678046d6 Partial-Bug: 1348243
27 lines
737 B
Ruby
27 lines
737 B
Ruby
# encoding: UTF-8
|
|
|
|
platform_family = node['platform_family']
|
|
|
|
case platform_family
|
|
when 'rhel'
|
|
include_recipe 'yum-epel' if node['ceph']['el_add_epel']
|
|
end
|
|
|
|
branch = node['ceph']['branch']
|
|
if branch == 'dev' && platform_family != 'centos' && platform_family != 'fedora'
|
|
fail "Dev branch for #{platform_family} is not yet supported"
|
|
end
|
|
|
|
repo = node['ceph'][platform_family][branch]['repository']
|
|
|
|
yum_repository 'ceph' do
|
|
baseurl repo
|
|
gpgkey node['ceph'][platform_family]['dev']['repository_key'] if branch == 'dev'
|
|
end
|
|
|
|
yum_repository 'ceph-extra' do
|
|
baseurl node['ceph'][platform_family]['extras']['repository']
|
|
gpgkey node['ceph'][platform_family]['extras']['repository_key']
|
|
only_if { node['ceph']['extras_repo'] }
|
|
end
|