<commit_before>---
- hosts: rh-sso-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: readfacts
      when: rhsso_is_deployed_on == 'osp'
- hosts: cf-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: create
      when: cf_is_deployed_on == 'osp'
    # - role: layerX_etc_hosts
    #   tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'etc-hosts' ]
    #   mode: create
    #   hosts:
    #     - satellite
    #     - ipa
    #     - rh-sso
    #     - openstack
    #     - rhosp-director
    #   when: cf_is_deployed_on == 'osp'
    - role: layerX_dns
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: update_floating_ip
      when: cf_is_deployed_on == 'osp'
    - role: layer3_vm_on_openstack_etc_hosts_internal_ips
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: create
      group: "{{ groups['cloudforms-group'] }}"
      when: cf_is_deployed_on == 'osp'

# - hosts: infrastructure
#   remote_user: root
#   gather_facts: false
#   roles:
#     - role: layer2_dnat_dns
#       tags: [ 'layer3', 'ose3-osp', 'dnat' ]
#       mode: floating_ip
#       group: "{{ groups['cloudforms-group'] }}"
#       when: cf_is_deployed_on == 'osp'

- hosts: cf-rhv-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: create
      when: cf_is_deployed_on == 'rhv'
    - role: layer2_rhel_reconfigure_dns
      tags: [ 'layer3', 'cf', 'dns', 'cf-dns' ]
      mode: create
      nameserver: "{{ hostvars['ipa'].vm_nics[0].ip }}"
      when: cf_is_deployed_on == 'rhv'
    - role: layerX_dns
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: update_services_network
      when: cf_is_deployed_on == 'rhv'

- hosts: cf-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf' ]
      mode: readfacts
      when: cf_is_deployed_on == 'osp'
- hosts: cloudforms-group
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer3_cloudforms_config, tags: [ 'layer3', 'cf', 'cf-config', 'cf-db' ], mode: create }

- hosts: cloudforms-ui
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer2_ipa_certificate, tags: ['layer2', 'cf', 'cf-certificate', 'cf-ui'], mode: create, certcn: 'cloudforms.{{ hailstorm_dns_domain }}' }
    - { role: layer3_cloudforms_certificate, tags: ['layer2', 'cf', 'cf-certificate', 'cf-ui'], mode: create }
#    - { role: layer3_cloudforms_saml_config, tags: ['layer2', 'cf', 'cf-saml', 'cf-ui'], mode: create, when: "cf_use_rhsso|default(false,true)" }

- hosts: cloudforms-wk-osp
  remote_user: root
  gather_facts: false
  roles:<commit_msg>reenable saml enablement<commit_after>---
- hosts: rh-sso-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: readfacts
      when: rhsso_is_deployed_on == 'osp'
- hosts: cf-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: create
      when: cf_is_deployed_on == 'osp'
    # - role: layerX_etc_hosts
    #   tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'etc-hosts' ]
    #   mode: create
    #   hosts:
    #     - satellite
    #     - ipa
    #     - rh-sso
    #     - openstack
    #     - rhosp-director
    #   when: cf_is_deployed_on == 'osp'
    - role: layerX_dns
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: update_floating_ip
      when: cf_is_deployed_on == 'osp'
    - role: layer3_vm_on_openstack_etc_hosts_internal_ips
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat' ]
      mode: create
      group: "{{ groups['cloudforms-group'] }}"
      when: cf_is_deployed_on == 'osp'

# - hosts: infrastructure
#   remote_user: root
#   gather_facts: false
#   roles:
#     - role: layer2_dnat_dns
#       tags: [ 'layer3', 'ose3-osp', 'dnat' ]
#       mode: floating_ip
#       group: "{{ groups['cloudforms-group'] }}"
#       when: cf_is_deployed_on == 'osp'

- hosts: cf-rhv-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: create
      when: cf_is_deployed_on == 'rhv'
    - role: layer2_rhel_reconfigure_dns
      tags: [ 'layer3', 'cf', 'dns', 'cf-dns' ]
      mode: create
      nameserver: "{{ hostvars['ipa'].vm_nics[0].ip }}"
      when: cf_is_deployed_on == 'rhv'
    - role: layerX_dns
      tags: [ 'layer3', 'cf', 'vm', 'cf-vm', 'dnat', 'cf-provider', 'cf-provider-rhev', 'cf-provider-ocp', 'cf-provider-osp' ]
      mode: update_services_network
      when: cf_is_deployed_on == 'rhv'

- hosts: cf-osp-vm-group
  remote_user: root
  gather_facts: false
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3', 'cf' ]
      mode: readfacts
      when: cf_is_deployed_on == 'osp'
- hosts: cloudforms-group
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer3_cloudforms_config, tags: [ 'layer3', 'cf', 'cf-config', 'cf-db' ], mode: create }

- hosts: cloudforms-ui
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer2_ipa_certificate, tags: ['layer2', 'cf', 'cf-certificate', 'cf-ui'], mode: create, certcn: 'cloudforms.{{ hailstorm_dns_domain }}' }
    - { role: layer3_cloudforms_certificate, tags: ['layer2', 'cf', 'cf-certificate', 'cf-ui'], mode: create }
    - { role: layer3_cloudforms_saml_config, tags: ['layer2', 'cf', 'cf-saml', 'cf-ui'], mode: create, when: "cf_use_rhsso|default(false,true)" }

- hosts: cloudforms-wk-osp
  remote_user: root
  gather_facts: false
  roles:
{'fraction_non_alphanumeric': 0.17063492063492064, 'fraction_numerical': 0.008571428571428572, 'mean_word_length': 3.0108211330362824, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1860276', 'n_tokens_mistral': 2497, 'n_tokens_neox': 2492, 'n_words': 493}