<commit_before># Author:: <NAME> (<<EMAIL>>)
# Cookbook Name:: zabbix
# Recipe:: server_source
#
# Copyright 2011, Efactures
#
# Apache 2.0
#

include_recipe "zabbix::default"

case node['platform']
when "ubuntu","debian"
  # install some dependencies
  %w{ fping libmysql++-dev libmysql++3 libcurl3 libiksemel-dev libiksemel3 libsnmp-dev snmp libiksemel-utils libcurl4-openssl-dev }.each do |pck|
    package pck do
      action :install
    end
  end
  init_template = 'zabbix_server.init.erb'
when "redhat","centos","scientific","amazon","oracle"
    include_recipe "yum::epel"
    if node['platform_version'].to_i < 6
      curldev = 'curl-devel'
    else
      curldev = 'libcurl-devel'
    end
    %w{ fping mysql-devel iksemel-devel iksemel-utils net-snmp-libs net-snmp-devel openssl-devel redhat-lsb }.push(curldev).each do |pck|
      package pck do
        action :install<commit_msg>Remove yum::epel from server_source to allow users to manage their own dependencies<commit_after># Author:: <NAME> (<<EMAIL>>)
# Cookbook Name:: zabbix
# Recipe:: server_source
#
# Copyright 2011, Efactures
#
# Apache 2.0
#

include_recipe "zabbix::default"

case node['platform']
when "ubuntu","debian"
  # install some dependencies
  %w{ fping libmysql++-dev libmysql++3 libcurl3 libiksemel-dev libiksemel3 libsnmp-dev snmp libiksemel-utils libcurl4-openssl-dev }.each do |pck|
    package pck do
      action :install
    end
  end
  init_template = 'zabbix_server.init.erb'
when "redhat","centos","scientific","amazon","oracle"
    if node['platform_version'].to_i < 6
      curldev = 'curl-devel'
    else
      curldev = 'libcurl-devel'
    end
    %w{ fping mysql-devel iksemel-devel iksemel-utils net-snmp-libs net-snmp-devel openssl-devel redhat-lsb }.push(curldev).each do |pck|
      package pck do
        action :install
{'fraction_non_alphanumeric': 0.12370005473453749, 'fraction_numerical': 0.0120415982484948, 'mean_word_length': 3.967391304347826, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '1427282', 'n_tokens_mistral': 693, 'n_tokens_neox': 644, 'n_words': 160}