<commit_before>---

- name: Add repos /etc/yum.repos.d/sensu.repo
  template:
       src: "etc/yum.repos.d/repo.template.j2"
       dest: "/etc/yum.repos.d/sensu.repo"
       owner: root
       group: root
       mode: 0644
  with_items:
       - { name: "sensu",
           baseurl: "http://repos.sensuapp.org/yum/el/$basearch/",
           gpgcheck: 0,
           enabled: 1 }

- name: install sensu
  yum: name=sensu state=installed


- name: sensu-client config
  template:
       src: "{{ item.src }}"
       dest: "{{ item.dest }}"
       owner: root
       group: root
       mode: 0644
  notify:
       - restart sensu-client
  with_items:
       - { src: 'etc/sensu/conf.d/client.json.j2', dest: '/etc/sensu/conf.d/client.json' }
       - { src: 'etc/sensu/config.json.j2', dest: '/etc/sensu/config.json' }

#Check depend
- name: install ruby
  yum: name=ruby state=installed

- name: install bc
  yum: name=bc state=installed

- name: install gem
  yum: name=gem state=installed

- name: install gcc-c++
  yum: name=gcc-c++ state=installed

#- name: install ruby-devel
#  yum: name=ruby-devel state=installed

- name: install the ruby-2.0.0.598-24.el7 rpm from a remote repo
  yum: name=http://vault.centos.org/7.1.1503/os/Source/SPackages/ruby-2.0.0.598-24.el7.src.rpm state=present

#check
- name: gem install sensu-plugins-process-checks
  gem: name=sensu-plugins-process-checks state=present

- name: gem install sensu-plugins-network-checks
  gem: name=sensu-plugins-network-checks state=present

- name: gem install sensu-plugins-load-checks
  gem: name=sensu-plugins-load-checks state=present

- name: gem install sensu-plugins-memory-checks
  gem: name=sensu-plugins-memory-checks state=present

- name: gem install sensu-plugins-disk-checks
  gem: name=sensu-plugins-disk-checks state=present

- name: gem install sensu-plugins-http
  gem: name=sensu-plugins-http state=present<commit_msg>add ruby devel<commit_after>---

- name: Add repos /etc/yum.repos.d/sensu.repo
  template:
       src: "etc/yum.repos.d/repo.template.j2"
       dest: "/etc/yum.repos.d/sensu.repo"
       owner: root
       group: root
       mode: 0644
  with_items:
       - { name: "sensu",
           baseurl: "http://repos.sensuapp.org/yum/el/$basearch/",
           gpgcheck: 0,
           enabled: 1 }

- name: install sensu
  yum: name=sensu state=installed


- name: sensu-client config
  template:
       src: "{{ item.src }}"
       dest: "{{ item.dest }}"
       owner: root
       group: root
       mode: 0644
  notify:
       - restart sensu-client
  with_items:
       - { src: 'etc/sensu/conf.d/client.json.j2', dest: '/etc/sensu/conf.d/client.json' }
       - { src: 'etc/sensu/config.json.j2', dest: '/etc/sensu/config.json' }

#Check depend
- name: install ruby
  yum: name=ruby state=installed

- name: install bc
  yum: name=bc state=installed

- name: install gem
  yum: name=gem state=installed

- name: install gcc-c++
  yum: name=gcc-c++ state=installed

#- name: install ruby-devel
#  yum: name=ruby-devel state=installed

- name: install the ruby-devel-2.0.0.598-25.el7 rpm from a remote repo
  yum: http://oss.oracle.com/ol7/SRPMS-updates/ruby-2.0.0.598-25.el7_1.src.rpm state=present

#check
- name: gem install sensu-plugins-process-checks
  gem: name=sensu-plugins-process-checks state=present

- name: gem install sensu-plugins-network-checks
  gem: name=sensu-plugins-network-checks state=present

- name: gem install sensu-plugins-load-checks
  gem: name=sensu-plugins-load-checks state=present

- name: gem install sensu-plugins-memory-checks
  gem: name=sensu-plugins-memory-checks state=present

- name: gem install sensu-plugins-disk-checks
  gem: name=sensu-plugins-disk-checks state=present

- name: gem install sensu-plugins-http
  gem: name=sensu-plugins-http state=present
{'fraction_non_alphanumeric': 0.13842920935119515, 'fraction_numerical': 0.018387181507748884, 'mean_word_length': 2.8817533129459734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '940240', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1368, 'n_words': 289}