<commit_before>{% if grains['for_development_only'] %}

include:
  - suse_manager_server

taskomatic_config:
  file.append:
    - name: /usr/share/rhn/config-defaults/rhn_taskomatic_daemon.conf
    - text: ['wrapper.java.additional.7=-Xdebug',
             'wrapper.java.additional.8=-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n']
    - require:
      - sls: suse_manager_server

taskomatic:
  service.running:
    - watch:
      - file: taskomatic_config
    - require:
      - file: taskomatic_config<commit_msg>Add JMX configuration to Taskomatic as well<commit_after>{% if grains['for_development_only'] %}

include:
  - suse_manager_server

taskomatic_config:
  file.append:
    - name: /usr/share/rhn/config-defaults/rhn_taskomatic_daemon.conf
    - text: |
        wrapper.java.additional.7=-Xdebug
        wrapper.java.additional.8=-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n
        wrapper.java.additional.9=-Dcom.sun.management.jmxremote.port=3334
        wrapper.java.additional.10=-Dcom.sun.management.jmxremote.ssl=false
        wrapper.java.additional.11=-Dcom.sun.management.jmxremote.authenticate=false
        wrapper.java.additional.12=-Djava.rmi.server.hostname={{ salt['network.interfaces']()['eth0']['inet'][0]['address'] }}
    - require:
      - sls: suse_manager_server

taskomatic:
  service.running:
    - watch:
      - file: taskomatic_config
    - require:
      - file: taskomatic_config
{'fraction_non_alphanumeric': 0.1321403991741225, 'fraction_numerical': 0.017205781142463867, 'mean_word_length': 3.586750788643533, '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': '7645748', 'n_tokens_mistral': 516, 'n_tokens_neox': 486, 'n_words': 56}