<commit_before>{%- from 'metadata/settings.sls' import metadata with context %}

install-cloudera-manager-agent:
  pkg.installed:
    - pkgs:
      - cloudera-manager-daemons
      - cloudera-manager-agent

install-psycopg2:
  cmd.run:
    - name: pip install --upgrade psycopg2>=2.5.4

replace_server_host:
  file.replace:
    - name: /etc/cloudera-scm-agent/config.ini
    - pattern: "server_host=.*"
    - repl: "server_host=cluster-manager.{{ metadata.cluster_domain }}"
    - unless: cat /etc/cloudera-scm-agent/config.ini | grep server_host=host-10-0-0-3.openstacklocal

start_agent:
  service.running:
    - enable: True
    - name: cloudera-scm-agent<commit_msg>avoid output redirection for pip install<commit_after>{%- from 'metadata/settings.sls' import metadata with context %}

install-cloudera-manager-agent:
  pkg.installed:
    - pkgs:
      - cloudera-manager-daemons
      - cloudera-manager-agent

install-psycopg2:
  cmd.run:
    - name: pip install --upgrade 'psycopg2>=2.5.4'

replace_server_host:
  file.replace:
    - name: /etc/cloudera-scm-agent/config.ini
    - pattern: "server_host=.*"
    - repl: "server_host=cluster-manager.{{ metadata.cluster_domain }}"
    - unless: cat /etc/cloudera-scm-agent/config.ini | grep server_host=host-10-0-0-3.openstacklocal

start_agent:
  service.running:
    - enable: True
    - name: cloudera-scm-agent
{'fraction_non_alphanumeric': 0.1358655953250548, 'fraction_numerical': 0.014609203798392988, 'mean_word_length': 3.228395061728395, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3873719', 'n_tokens_mistral': 522, 'n_tokens_neox': 506, 'n_words': 82}