<commit_before>
{% set dbhost_ipaddr_data =
     salt.saltutil.runner('mine.get',
                          tgt='G@roles:ocw-db and G@ocw-environment:production',
                          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-production-cms-db2'][0] %}
{% set zodb_ipaddr = dbhost_ipaddr_data['ocw-production-cms-db1'][0] %}

mine_functions:
  network.ip_addrs: [eth0]

ocw:
  ocwcms_branch: spring_2019_campaign
  engines_conf:
    # database is the MySQL database, not Zope database.
    database:
      host: "{{ mysql_db_ipaddr }}"
    cms:
      url: https://ocw-production-cms-1.odl.mit.edu
      host: ocw-production-cms1
      engine_host: ocw-production-cms2
    staging:
      url: https://ocw-production-ocw2.odl.mit.edu
      host: ocw-production-ocw2.odl.mit.edu<commit_msg>Put OCW production CMS back on ocwcms master branch<commit_after>
{% set dbhost_ipaddr_data =
     salt.saltutil.runner('mine.get',
                          tgt='G@roles:ocw-db and G@ocw-environment:production',
                          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-production-cms-db2'][0] %}
{% set zodb_ipaddr = dbhost_ipaddr_data['ocw-production-cms-db1'][0] %}

mine_functions:
  network.ip_addrs: [eth0]

ocw:
  ocwcms_branch: master
  engines_conf:
    # database is the MySQL database, not Zope database.
    database:
      host: "{{ mysql_db_ipaddr }}"
    cms:
      url: https://ocw-production-cms-1.odl.mit.edu
      host: ocw-production-cms1
      engine_host: ocw-production-cms2
    staging:
      url: https://ocw-production-ocw2.odl.mit.edu
      host: ocw-production-ocw2.odl.mit.edu
{'fraction_non_alphanumeric': 0.12616339193381593, 'fraction_numerical': 0.01344364012409514, 'mean_word_length': 2.7572815533980584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '337944', 'n_tokens_mistral': 716, 'n_tokens_neox': 685, 'n_words': 123}