<commit_before>{% set nginx = salt['grains.filter_by']({
    'Debian': {
        'package': 'nginx',
        'service': 'nginx',
        'webuser': 'www-data',
        'conf_file': '/etc/nginx/nginx.conf',
        'vhost_available': '/etc/nginx/sites-available',
        'vhost_enabled': '/etc/nginx/sites-enabled',
        'vhost_use_symlink': True,
    },
    'RedHat': {
        'package': 'nginx',
        'service': 'nginx',
        'webuser': 'nginx',
        'conf_file': '/etc/nginx/nginx.conf',
        'vhost_available': '/etc/nginx/conf.d',
        'vhost_enabled': '/etc/nginx/conf.d',
        'vhost_use_symlink': False,
    },
}, merge=salt['pillar.get']('nginx:lookup')) %}

{% set varnish = salt['grains.filter_by']({
    'Debian': {
        'package': 'varnish',
        'service': 'varnish',
        'config': '/etc/default/varnish',
    },
    'RedHat': {
        'package': 'varnish',
        'service': 'varnish',
        'config': '/etc/sysconfig/varnish',
    },
}, merge=salt['pillar.get']('varnish:lookup')) %}

{% set python = salt['grains.filter_by']({
    'Debian': {
        'pkg': 'python3',
        'dev_pkg': 'python3-dev',
        'pip_pkg': 'python-pip',
    },
    'RedHat': {
        'pkg': 'python3',
        'dev_pkg': 'python3-devel',
        'pip_pkg': 'python-pip',
    },
}, merge=salt['grains.filter_by']({
    '14.04': {
        'pyvenv_cmd': 'pyvenv-3.4',
    },
    '14.10': {
        'pyvenv_cmd': 'pyvenv-3.4',
    },
}, grain='lsb_distrib_release', merge=salt['pillar.get']('python:lookup'))) %}

{% set pg_version = salt['grains.filter_by']({
    'RedHat' : { 'id': '9.1' },
    'Arch'   : { 'id': '9.1' },
    'Debian' : { 'id': '9.3' },
}, merge=salt['grains.filter_by']({
    '14.04'  : { 'id': '9.3' },
    '14.10'  : { 'id': '9.4' },
}, grain='lsb_distrib_release', merge=salt['grains.filter_by']({
    'jessie' : { 'id': '9.4' },
    'wheezy' : { 'id': '9.1' },
}, grain='lsb_distrib_codename', merge=salt['pillar.get']('postgres:lookup')))) %}

{% set postgres = salt['grains.filter_by']({
    'RedHat': {
        'pkg'            : 'postgresql-server',
        'pkg_dev'        : 'postgresql-devel',
        'pkg_libpq_dev'  : 'postgresql-libs',
        'python'         : 'python-psycopg2',
        'service'        : 'postgresql',
        'conf_dir'       : '/var/lib/pgsql/data',
        'create_cluster' : False,<commit_msg>include pyvenv for Ubuntu 12.04<commit_after>{% set nginx = salt['grains.filter_by']({
    'Debian': {
        'package': 'nginx',
        'service': 'nginx',
        'webuser': 'www-data',
        'conf_file': '/etc/nginx/nginx.conf',
        'vhost_available': '/etc/nginx/sites-available',
        'vhost_enabled': '/etc/nginx/sites-enabled',
        'vhost_use_symlink': True,
    },
    'RedHat': {
        'package': 'nginx',
        'service': 'nginx',
        'webuser': 'nginx',
        'conf_file': '/etc/nginx/nginx.conf',
        'vhost_available': '/etc/nginx/conf.d',
        'vhost_enabled': '/etc/nginx/conf.d',
        'vhost_use_symlink': False,
    },
}, merge=salt['pillar.get']('nginx:lookup')) %}

{% set varnish = salt['grains.filter_by']({
    'Debian': {
        'package': 'varnish',
        'service': 'varnish',
        'config': '/etc/default/varnish',
    },
    'RedHat': {
        'package': 'varnish',
        'service': 'varnish',
        'config': '/etc/sysconfig/varnish',
    },
}, merge=salt['pillar.get']('varnish:lookup')) %}

{% set python = salt['grains.filter_by']({
    'Debian': {
        'pkg': 'python3',
        'dev_pkg': 'python3-dev',
        'pip_pkg': 'python-pip',
    },
    'RedHat': {
        'pkg': 'python3',
        'dev_pkg': 'python3-devel',
        'pip_pkg': 'python-pip',
    },
}, merge=salt['grains.filter_by']({
    '12.04': {
        'pyvenv_cmd': 'pyvenv-3.4',
    },
    '14.04': {
        'pyvenv_cmd': 'pyvenv-3.4',
    },
    '14.10': {
        'pyvenv_cmd': 'pyvenv-3.4',
    },
}, grain='lsb_distrib_release', merge=salt['pillar.get']('python:lookup'))) %}

{% set pg_version = salt['grains.filter_by']({
    'RedHat' : { 'id': '9.1' },
    'Arch'   : { 'id': '9.1' },
    'Debian' : { 'id': '9.3' },
}, merge=salt['grains.filter_by']({
    '14.04'  : { 'id': '9.3' },
    '14.10'  : { 'id': '9.4' },
}, grain='lsb_distrib_release', merge=salt['grains.filter_by']({
    'jessie' : { 'id': '9.4' },
    'wheezy' : { 'id': '9.1' },
}, grain='lsb_distrib_codename', merge=salt['pillar.get']('postgres:lookup')))) %}

{% set postgres = salt['grains.filter_by']({
    'RedHat': {
        'pkg'            : 'postgresql-server',
        'pkg_dev'        : 'postgresql-devel',
        'pkg_libpq_dev'  : 'postgresql-libs',
        'python'         : 'python-psycopg2',
        'service'        : 'postgresql',
        'conf_dir'       : '/var/lib/pgsql/data',
        'create_cluster' : False,
{'fraction_non_alphanumeric': 0.23143564356435645, 'fraction_numerical': 0.018151815181518153, 'mean_word_length': 2.4685264663805437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5240060', 'n_tokens_mistral': 1986, 'n_tokens_neox': 1903, 'n_words': 258}