<commit_before># install nginx from PPA so we have the latest version
base:
  pkgrepo.managed:
    - ppa: nginx/stable
    - require_in:
      - pkg: nginx

apache2.2-common:
  pkg.purged

nginx:
  pkg.installed:
    - require:
      - pkg: apache2.2-common


# on Ubuntu 12.04 this file prevents nginx from launching
/etc/nginx/sites-available/default:
  file.absent:
    - require:
      - pkg: nginx

/etc/nginx/sites-enabled/default:
  file.absent:
    - require:
      - pkg: nginx

/etc/nginx/sites-available:
  file.directory:
    - require:
      - pkg: nginx

/etc/nginx/sites-enabled:
  file.directory:
    - require:
      - pkg: nginx

{% if pillar['main_user'] %}
{% set main_user = pillar['main_user'] %}

/etc/nginx/nginx.conf
  source: salt://nginx/nginx.conf
  template: jinja
  defaults:
    - main_user: {{ main_user }}
    - workers: 4
  file.managed:
    - require:
      - pkg: nginx

{% for project in pillar['projects'] %}
/etc/nginx/sites-enabled/{{ project.nginx.fqdn }}:
  file.managed:
    - source: salt://nginx/site.conf
    - template: jinja<commit_msg>Missing semicolon<commit_after># install nginx from PPA so we have the latest version
base:
  pkgrepo.managed:
    - ppa: nginx/stable
    - require_in:
      - pkg: nginx

apache2.2-common:
  pkg.purged

nginx:
  pkg.installed:
    - require:
      - pkg: apache2.2-common


# on Ubuntu 12.04 this file prevents nginx from launching
/etc/nginx/sites-available/default:
  file.absent:
    - require:
      - pkg: nginx

/etc/nginx/sites-enabled/default:
  file.absent:
    - require:
      - pkg: nginx

/etc/nginx/sites-available:
  file.directory:
    - require:
      - pkg: nginx

/etc/nginx/sites-enabled:
  file.directory:
    - require:
      - pkg: nginx

{% if pillar['main_user'] %}
{% set main_user = pillar['main_user'] %}

/etc/nginx/nginx.conf:
  source: salt://nginx/nginx.conf
  template: jinja
  defaults:
    - main_user: {{ main_user }}
    - workers: 4
  file.managed:
    - require:
      - pkg: nginx

{% for project in pillar['projects'] %}
/etc/nginx/sites-enabled/{{ project.nginx.fqdn }}:
  file.managed:
    - source: salt://nginx/site.conf
    - template: jinja
{'fraction_non_alphanumeric': 0.13759779107225034, 'fraction_numerical': 0.008283479061205707, 'mean_word_length': 2.517799352750809, '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': '6515365', 'n_tokens_mistral': 881, 'n_tokens_neox': 788, 'n_words': 168}