<commit_before>
{% set dbhost_ipaddr_data =
     salt.saltutil.runner('mine.get',
                          tgt='ocw-qa-cms-db*',
                          fun='network.ip_addrs',
                          tgt_type='glob')
%}
{# The "db2" database host is always the MySQL one, per our naming convention. #}
{% set mysql_db_ipaddr = dbhost_ipaddr_data['ocw-qa-cms-db2'][0] %}
{% set zodb_ipaddr = dbhost_ipaddr_data['ocw-qa-cms-db1'][0] %}

mine_functions:
  network.ip_addrs: [eth0]

ocw:
  ocwcms_git_ref: qa
  engines_conf:
    # database is the MySQL database, not Zope database.
    database:
      host: "{{ mysql_db_ipaddr }}"
    cms:
      url: https://ocw-qa-cms-2.odl.mit.edu
      host: ocw-qa-cms-2.odl.mit.edu
      engine_host: ocw-qa-cms-2
      engine_url: https://ocw-qa-cms-2.odl.mit.edu
    staging:
      url: https://ocw-qa-ocw2.odl.mit.edu
      host: ocw-qa-ocw2.odl.mit.edu
      user: fsuser
    production:
      url: https://ocw-qa-origin.odl.mit.edu
      host: ocw-qa-origin
    mirror:
      url: http://ocw-qa-cms-2.odl.mit.edu/
      host: ocw-qa-cms-2
    netstorage:
      host: ocw-production-netstorage.odl.mit.edu
      user: sshacs
      rootdirectory: /15436/ZipForEndUsers
      zipurlprefix: /ans15436/ZipForEndUsers
    dspace:
      retiredcourseziproot: /mnt/ocwfileshare/OCWEngines/RetiredCourseZips
      # current_environment's value matches the header in the engines.conf
      # template file.
      current_environment: Production_Dspace_conf
    # test_dspace_conf is for Test_Dspace_conf in engines.conf.jinja
    test_dspace_conf:
      dspace_host_id: dome-test.mit.edu
      dspace_host_port: 443
      dspace_endpoint_prefix: https://dome-test.mit.edu/sword/deposit/
      deposit_uri_lookup_file_name: UAT_DepositURILookup.xml
    # production_dspace_conf is for Production_Dspace_conf in engines.conf.jinja
    production_dspace_conf:
      dspace_host_id: dspace.mit.edu
      dspace_host_port: 443
      dspace_endpoint_prefix: https://dspace.mit.edu/sword/deposit/
      deposit_uri_lookup_file_name: DepositURILookup.xml
  zope_conf:
    base_site_url: https://ocw-qa-origin.odl.mit.edu
    base_staging_site_url: https://ocw-qa-ocw2.odl.mit.edu
    zodb_ipaddr: "{{ zodb_ipaddr }}"
  mirror:
    host_aliases:
      - ['ocw.mit.edu', '10.100.0.29']
      - ['ocwcms.mit.edu', '10.100.0.25']
      - ['ocwpcms2.mit.edu', '10.100.0.22']
<commit_msg>Revert "Change mine.get matching type in ocw-qa pillar"<commit_after>
{% set dbhost_ipaddr_data =
     salt.saltutil.runner('mine.get',
                          tgt='G@roles:ocw-db and G@ocw-environment:qa',
                          fun='network.ip_addrs',
                          tgt_type='compound')
%}
{# The "db2" database host is always the MySQL one, per our naming convention. #}
{% set mysql_db_ipaddr = dbhost_ipaddr_data['ocw-qa-cms-db2'][0] %}
{% set zodb_ipaddr = dbhost_ipaddr_data['ocw-qa-cms-db1'][0] %}

mine_functions:
  network.ip_addrs: [eth0]

ocw:
  ocwcms_git_ref: qa
  engines_conf:
    # database is the MySQL database, not Zope database.
    database:
      host: "{{ mysql_db_ipaddr }}"
    cms:
      url: https://ocw-qa-cms-2.odl.mit.edu
      host: ocw-qa-cms-2.odl.mit.edu
      engine_host: ocw-qa-cms-2
      engine_url: https://ocw-qa-cms-2.odl.mit.edu
    staging:
      url: https://ocw-qa-ocw2.odl.mit.edu
      host: ocw-qa-ocw2.odl.mit.edu
      user: fsuser
    production:
      url: https://ocw-qa-origin.odl.mit.edu
      host: ocw-qa-origin
    mirror:
      url: http://ocw-qa-cms-2.odl.mit.edu/
      host: ocw-qa-cms-2
    netstorage:
      host: ocw-production-netstorage.odl.mit.edu
      user: sshacs
      rootdirectory: /15436/ZipForEndUsers
      zipurlprefix: /ans15436/ZipForEndUsers
    dspace:
      retiredcourseziproot: /mnt/ocwfileshare/OCWEngines/RetiredCourseZips
      # current_environment's value matches the header in the engines.conf
      # template file.
      current_environment: Production_Dspace_conf
    # test_dspace_conf is for Test_Dspace_conf in engines.conf.jinja
    test_dspace_conf:
      dspace_host_id: dome-test.mit.edu
      dspace_host_port: 443
      dspace_endpoint_prefix: https://dome-test.mit.edu/sword/deposit/
      deposit_uri_lookup_file_name: UAT_DepositURILookup.xml
    # production_dspace_conf is for Production_Dspace_conf in engines.conf.jinja
    production_dspace_conf:
      dspace_host_id: dspace.mit.edu
      dspace_host_port: 443
      dspace_endpoint_prefix: https://dspace.mit.edu/sword/deposit/
      deposit_uri_lookup_file_name: DepositURILookup.xml
  zope_conf:
    base_site_url: https://ocw-qa-origin.odl.mit.edu
    base_staging_site_url: https://ocw-qa-ocw2.odl.mit.edu
    zodb_ipaddr: "{{ zodb_ipaddr }}"
  mirror:
    host_aliases:
      - ['ocw.mit.edu', '10.100.0.29']
      - ['ocwcms.mit.edu', '10.100.0.25']
      - ['ocwpcms2.mit.edu', '10.100.0.22']

{'fraction_non_alphanumeric': 0.12303290414878398, 'fraction_numerical': 0.022889842632331903, 'mean_word_length': 2.7103866565579984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 6, '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': '883793', 'n_tokens_mistral': 1977, 'n_tokens_neox': 1878, 'n_words': 287}