<commit_before>#!jinja|yaml|gpg

{% set ENVIRONMENT = salt.grains.get('environment') %}
{% set BUSINESS_UNIT = salt.grains.get('business_unit', 'residential') %}

rabbitmq:
  overrides:
    version: '3.6.15-1'
  configuration:
    rabbit:
      cluster_partition_handling: '@autoheal'
      auth_backends:
        - '@rabbit_auth_backend_internal'
    autocluster:
      version: '0.10.0'
      backend: '@consul'
      consul_host: localhost
      consul_port: 8500
      consul_svc: rabbitmq-cluster
      cluster_name: {{ ENVIRONMENT }}
  env:
    RABBITMQ_USE_LONGNAMES: 'true'
  users:
    - name: guest
      state: absent
    - name: admin
      state: present
      settings:
        tags:
          - administrator
        password: {{ salt.vault.read('secret-{BUSINESS_UNIT}/{ENVIRONMENT}/rabbitmq-admin-password'.format(
                     BUSINESS_UNIT=BUSINESS_UNIT, ENVIRONMENT=ENVIRONMENT)).data.value }}
  erlang_cookie: {{ salt.vault.read(
      'secret-{BUSINESS_UNIT}/{ENVIRONMENT}/erlang_cookie'.format(
          BUSINESS_UNIT=BUSINESS_UNIT, ENVIRONMENT=ENVIRONMENT)).data.value }}<commit_msg>Fixed environment variable for rabbit use longnames<commit_after>#!jinja|yaml|gpg

{% set ENVIRONMENT = salt.grains.get('environment') %}
{% set BUSINESS_UNIT = salt.grains.get('business_unit', 'residential') %}

rabbitmq:
  overrides:
    version: '3.6.15-1'
  configuration:
    rabbit:
      cluster_partition_handling: '@autoheal'
      auth_backends:
        - '@rabbit_auth_backend_internal'
    autocluster:
      version: '0.10.0'
      backend: '@consul'
      consul_host: localhost
      consul_port: 8500
      consul_svc: rabbitmq-cluster
      cluster_name: {{ ENVIRONMENT }}
  env:
    USE_LONGNAMES: 'true'
  users:
    - name: guest
      state: absent
    - name: admin
      state: present
      settings:
        tags:
          - administrator
        password: {{ salt.vault.read('secret-{BUSINESS_UNIT}/{ENVIRONMENT}/rabbitmq-admin-password'.format(
                     BUSINESS_UNIT=BUSINESS_UNIT, ENVIRONMENT=ENVIRONMENT)).data.value }}
  erlang_cookie: {{ salt.vault.read(
      'secret-{BUSINESS_UNIT}/{ENVIRONMENT}/erlang_cookie'.format(
          BUSINESS_UNIT=BUSINESS_UNIT, ENVIRONMENT=ENVIRONMENT)).data.value }}
{'fraction_non_alphanumeric': 0.12206988058381248, 'fraction_numerical': 0.011499336576735958, 'mean_word_length': 3.061041292639138, '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': '1648068', 'n_tokens_mistral': 819, 'n_tokens_neox': 754, 'n_words': 116}