<commit_before>install_erlang:
  pkg.installed:
    - name: erlang
    
install_rabbitmq:
  pkg.installed: 
    - sources: 
      - rabbitmq: https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm

enable_rabbitmq_on_startup:
  cmd.run:
    - name: chkconfig rabbitmq-server on
    
    
start_rabbitmq:    
  service.running:
    - name: rabbitmq-server
    
rabbitmq_vhost:
  rabbitmq_vhost.present:
    - name: pcawg_vhost
    - user: pcawg
    
rabbitmq_user:
  rabbitmq_user.present:
    - name: pcawg
    - password: <PASSWORD>
    - tags: 
      - management
    - perms:
      - 'pcawg_vhost':
        - '.*'
        - '.*'
        - '.*'
          
rabbitmq_management_plugin:
  rabbitmq_plugin.enabled:
    - name: rabbitmq_management
            
rabbitmq_consul_config:
  file.managed:
    - name: /etc/opt/consul.d/rabbitmq_consul.json
    - source: salt://rabbitmq/conf/rabbitmq_consul.json
    - user: root
    - group: root
    - mode: 644 
    - makedirs: True  <commit_msg>Update RabbitMQ to version 3.6.1.<commit_after>install_erlang:
  pkg.installed:
    - name: erlang
    
install_rabbitmq:
  pkg.installed: 
    - sources: 
      - rabbitmq: http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm

enable_rabbitmq_on_startup:
  cmd.run:
    - name: chkconfig rabbitmq-server on
    
    
start_rabbitmq:    
  service.running:
    - name: rabbitmq-server
    
rabbitmq_vhost:
  rabbitmq_vhost.present:
    - name: pcawg_vhost
    - user: pcawg
    
rabbitmq_user:
  rabbitmq_user.present:
    - name: pcawg
    - password: <PASSWORD>
    - tags: 
      - management
    - perms:
      - 'pcawg_vhost':
        - '.*'
        - '.*'
        - '.*'
          
rabbitmq_management_plugin:
  rabbitmq_plugin.enabled:
    - name: rabbitmq_management
            
rabbitmq_consul_config:
  file.managed:
    - name: /etc/opt/consul.d/rabbitmq_consul.json
    - source: salt://rabbitmq/conf/rabbitmq_consul.json
    - user: root
    - group: root
    - mode: 644 
    - makedirs: True  
{'fraction_non_alphanumeric': 0.11518072289156626, 'fraction_numerical': 0.01108433734939759, 'mean_word_length': 2.1171171171171173, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '2256664', 'n_tokens_mistral': 835, 'n_tokens_neox': 765, 'n_words': 110}