<commit_before># irods-provisioner
#
# playbooks/irods-cluster.yml - Ansible playbook for configuring a test iRODS cluster
# Author: <NAME>, KTH Royal Institute of Technology
#
# Copyright (C) 2016-2017 KTH Royal Institute of Technology. All rights reserved.
# See LICENSE file for more information.

---

- hosts: irods
  become_user: root

  tasks:
    - name: register git repo commit id
      local_action: shell git rev-parse HEAD
      become: no
      register: git_commit_id

    - name: "Build hosts file"
      lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_eth1.ipv4.address }} {{item}}" state=present
      when: hostvars[item].ansible_eth1.ipv4.address is defined
      with_items: "{{ groups['all'] }}"

    - name: build provisioner manifest file
      template: src="../templates/irods-provisioner.manifest.j2" dest="/etc/irods-provisioner.manifest" mode=0644 owner=root group=root

    - name: necessary package repositories
      yum:
        name:
          - epel-release
        state: latest

    - name: necessary management packages
      yum:
        name:
          - psmisc
          - net-tools
          - htop
          - iotop
          - iftop
          - python-psycopg2
          - httpd
          - php
          - git
        state: latest

- hosts: irods
  become_user: root

  roles:
    - role: ipa-client


- hosts: irods-icat
  become_user: root
  
  roles:
    - role: postgres 

    - role: irods-icat

    - role: emc-metalnx-rmd

    - role: irods-nagios

    - role: irods-logforw

- hosts: irods-resource
  become_user: root

  roles:
    - role: irods-resource

    - role: davrods

    - role: emc-metalnx-rmd

    - role: irods-logforw

- hosts: irods-frontend
  become_user: root

  roles:
    - role: irods-client

    - role: davrods

    - role: postgres

    - role: emc-metalnx-web

- hosts: irods-idm
  become_user: root

  roles:
    - role: ipa-server<commit_msg>disable provisioning of IdM servers for now<commit_after># irods-provisioner
#
# playbooks/irods-cluster.yml - Ansible playbook for configuring a test iRODS cluster
# Author: <NAME>, KTH Royal Institute of Technology
#
# Copyright (C) 2016-2017 KTH Royal Institute of Technology. All rights reserved.
# See LICENSE file for more information.

---

- hosts: irods
  become_user: root

  tasks:
    - name: register git repo commit id
      local_action: shell git rev-parse HEAD
      become: no
      register: git_commit_id

    - name: "Build hosts file"
      lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_eth1.ipv4.address }} {{item}}" state=present
      when: hostvars[item].ansible_eth1.ipv4.address is defined
      with_items: "{{ groups['all'] }}"

    - name: build provisioner manifest file
      template: src="../templates/irods-provisioner.manifest.j2" dest="/etc/irods-provisioner.manifest" mode=0644 owner=root group=root

    - name: necessary package repositories
      yum:
        name:
          - epel-release
        state: latest

    - name: necessary management packages
      yum:
        name:
          - psmisc
          - net-tools
          - htop
          - iotop
          - iftop
          - python-psycopg2
          - httpd
          - php
          - git
        state: latest

- hosts: irods
  become_user: root

  roles:
    - role: ipa-client


- hosts: irods-icat
  become_user: root
  
  roles:
    - role: postgres 

    - role: irods-icat

    - role: emc-metalnx-rmd

    - role: irods-nagios

    - role: irods-logforw

- hosts: irods-resource
  become_user: root

  roles:
    - role: irods-resource

    - role: davrods

    - role: emc-metalnx-rmd

    - role: irods-logforw

- hosts: irods-frontend
  become_user: root

  roles:
    - role: irods-client

    - role: davrods

    - role: postgres

    - role: emc-metalnx-web

# - hosts: irods-idm
#   become_user: root
#
#   roles:
#     - role: ipa-server
{'fraction_non_alphanumeric': 0.10442477876106195, 'fraction_numerical': 0.009102402022756004, 'mean_word_length': 2.147175815433572, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1500167', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1344, 'n_words': 335}