<commit_before>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

yum_repository 'ceph' do
  baseurl node['ceph'][platform_family][branch]['repository']
  gpgkey node['ceph'][platform_family][branch]['repository_key']
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

package 'parted'    # needed by ceph-disk-prepare to run partprobe
package 'hdparm'    # used by ceph-disk activate
package 'xfsprogs'  # needed by ceph-disk-prepare to format as xfs
package 'btrfs-progs' # needed to format as btrfs, in the future
if node.platform_family == 'rhel' and node.platform_version.to_f < 7
  package 'python-argparse'
end<commit_msg>Fixes style guide violation with the redhat fixes<commit_after>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

yum_repository 'ceph' do
  baseurl node['ceph'][platform_family][branch]['repository']
  gpgkey node['ceph'][platform_family][branch]['repository_key']
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

package 'parted'    # needed by ceph-disk-prepare to run partprobe
package 'hdparm'    # used by ceph-disk activate
package 'xfsprogs'  # needed by ceph-disk-prepare to format as xfs
package 'btrfs-progs' # needed to format as btrfs, in the future
if node['platform_family'] == 'rhel' && node['platform_version'].to_f < 7
  package 'python-argparse'
end
{'fraction_non_alphanumeric': 0.14028610982925704, 'fraction_numerical': 0.0009229349330872173, 'mean_word_length': 6.374149659863946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2076070', 'n_tokens_mistral': 712, 'n_tokens_neox': 720, 'n_words': 185}