<commit_before>{% set user = 'exampleuser' %}
{% set group = 'examplegroup' %}
{% set private_ips = { 1: '192.168.33.17', 2: '192.168.33.18', 3: '192.168.33.19' } %} 
{% set public_ips = { 1: '192.168.1.97', 2: '192.168.1.98' } %} 

zinibu_basic:
  app_user: {{ user }}
  app_group: {{ group }}
  do_token: xyz
  root_user: root
  project:
    name: zinibu
    pyvenvs_dir: pyvenvs

    # keys of webheads must match minion ids
    webheads:
      production1:
          public_ip: {{ public_ips[1] }}
          private_ip: {{ private_ips[1] }}
          nginx_port: 81
          gunicorn_port: 8000
          maxconn_dynamic: 250
          maxconn_static: 50
          slowstart: 10s
      production2:
          public_ip: {{ public_ips[2] }}
          private_ip: {{ private_ips[2] }}
          nginx_port: 81
          gunicorn_port: 8000
          maxconn_dynamic: 250
          maxconn_static: 50
          slowstart: 10s

    varnish_check: '/varnishcheck'

    # keys must match minion ids
    varnish_servers:
      production1:
          public_ip: {{ public_ips[1] }}
          private_ip: {{ private_ips[1] }}
          port: 83
          maxconn_cache: 1000
      production2:
          public_ip: {{ public_ips[2] }}
          private_ip: {{ private_ips[2] }}
          port: 83
          maxconn_cache: 1000

    # if using keepalived, put the floating IP here
    haproxy_frontend_public_ip: pub1
    # optional ssl certificate, must be created and copied here beforehand, see README
    #haproxy_ssl_cert: /srv/haproxy/ssl/example_com.pem
    haproxy_frontend_port: 80
    haproxy_frontend_secure_port: 443
    haproxy_check: '/haproxycheck'
    haproxy_app_check_url: '/app-check/'
    haproxy_app_check_expect: '[oO][kK]'
    haproxy_static_check_url: '/static/znbmain/static-check.txt'

    # keys must match minion ids
    # set anchor_ip when using floating IPs with Digital Ocean
    haproxy_servers:<commit_msg>include variable for haproxy public ip<commit_after>{% set user = 'exampleuser' %}
{% set group = 'examplegroup' %}
{% set private_ips = { 1: '192.168.33.17', 2: '192.168.33.18', 3: '192.168.33.19' } %} 
{% set public_ips = { 1: '192.168.1.97', 2: '192.168.1.98' } %} 

zinibu_basic:
  app_user: {{ user }}
  app_group: {{ group }}
  do_token: xyz
  root_user: root
  project:
    name: zinibu
    pyvenvs_dir: pyvenvs

    # keys of webheads must match minion ids
    webheads:
      production1:
          public_ip: {{ public_ips[1] }}
          private_ip: {{ private_ips[1] }}
          nginx_port: 81
          gunicorn_port: 8000
          maxconn_dynamic: 250
          maxconn_static: 50
          slowstart: 10s
      production2:
          public_ip: {{ public_ips[2] }}
          private_ip: {{ private_ips[2] }}
          nginx_port: 81
          gunicorn_port: 8000
          maxconn_dynamic: 250
          maxconn_static: 50
          slowstart: 10s

    varnish_check: '/varnishcheck'

    # keys must match minion ids
    varnish_servers:
      production1:
          public_ip: {{ public_ips[1] }}
          private_ip: {{ private_ips[1] }}
          port: 83
          maxconn_cache: 1000
      production2:
          public_ip: {{ public_ips[2] }}
          private_ip: {{ private_ips[2] }}
          port: 83
          maxconn_cache: 1000

    # if using keepalived, put the floating IP here
    haproxy_frontend_public_ip: {{ public_ips[1] }}
    # optional ssl certificate, must be created and copied here beforehand, see README
    #haproxy_ssl_cert: /srv/haproxy/ssl/example_com.pem
    haproxy_frontend_port: 80
    haproxy_frontend_secure_port: 443
    haproxy_check: '/haproxycheck'
    haproxy_app_check_url: '/app-check/'
    haproxy_app_check_expect: '[oO][kK]'
    haproxy_static_check_url: '/static/znbmain/static-check.txt'

    # keys must match minion ids
    # set anchor_ip when using floating IPs with Digital Ocean
    haproxy_servers:
{'fraction_non_alphanumeric': 0.10639386189258312, 'fraction_numerical': 0.055754475703324806, 'mean_word_length': 2.454946996466431, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, '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': '7309766', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1348, 'n_words': 304}