<commit_before>
---
# file: roles/web-front/defaults/main.yml

# Drupal
drupal: {
  db_name: "drupal",
  db_user: "drupal",
  db_pwd: "password",
}

drush: {
  version: "6.*",
}

# PHP
php_package: php55u

# Sections APC and suhosin are only for php53u
# OPCACHE is for php55u, PHP section is shared

php:
 - section: PHP
   options:
    - key: memory_limit
      val: 512M
    - key: realpath_cache_size
      val: 256K
    - key: realpath_cache_ttl
      val: 7200
    - key: max_execution_time
      val: 60
    - key: max_input_time
      val: 60
    - key: post_max_size
      val: 24M
    - key: upload_max_filesize
      val: 50M
    - key: max_file_uploads
      val: 20
    - key: allow_url_fopen
      val: On
    - key: display_errors
      val: Off
    - key: html_errors
      val: Off
    - key: display_errors
      val: On
    - key: html_errors
      val: On
 - section: DATE
   options:
    - key: date.timezone
      val: Europe/Helsinki
 # - section: APC
 #   options: 
 #    - key: apc.shm_size
 #      val: 256M
 #    - key: apc.ttl
 #      val: 0
 #    - key: apc.user_ttl
 #      val: 7200
 #    - key: apc.stat
 #      val: 0
 # - section: suhosin
 #   options:
 #     - key: suhosin.mail.protect
 #       val: 2
 #     - key: suhosin.filter.action
 #       val: 402
 #     - key: suhosin.log.syslog
 #       val: S_ALL & ~S_SQL
 #     - key: suhosin.post.max_vars
 #       val: 1000
 #     - key: suhosin.request.max_vars
 #       val: 1000
 - section: OPCACHE
   options:
    - key: opcache.memory
      val: 256
    - key: opcache.validate
      val: 1
    - key: opcache.revalidate_freq
      val: 0

# MariaDB
mysql_root_password: <PASSWORD>
server_hostname: localhost
innodb_log_file_size: '128MB'
innodb_buffer_pool_size: '512MB'
wait_timeout: '3600'

# Varnish
varnish_port: '80'
varnish_memory: '512M'

varnish_backends:
  - name: web1
    host: localhost
    port: 8080
ssl_ip_fix: false

# Nginx
worker_processes: '1'
nginx_sites:
  - hostname: 'local.ly.fi *.local.ly.fi'
    port: '8080 default_server'
    docroot: '/vagrant/drupal/current'
    accesslog: true
    accesslog_params: 'main buffer=32k'
    errorlog: true
    logprefix: 'local.ly'
    ssl: false
    sslproxy: false
    ssl_certificate: default.crt
    ssl_certificate_key: default.key
    include_drupal: true
    cdn: false
    nocdnhostname: 'www.wunder.io'
    redirect: false
    redirecthost: 'https://www.wunder.io'
<commit_msg>Mailcatcher php sendmail setting added to variables.yml<commit_after>
---
# file: roles/web-front/defaults/main.yml

# Drupal
drupal: {
  db_name: "drupal",
  db_user: "drupal",
  db_pwd: "password",
}

drush: {
  version: "6.*",
}

# PHP
php_package: php55u

# Sections APC and suhosin are only for php53u
# OPCACHE is for php55u, PHP section is shared

php:
 - section: PHP
   options:
    - key: sendmail_path
      val: /usr/bin/catchmail
    - key: memory_limit
      val: 512M
    - key: realpath_cache_size
      val: 256K
    - key: realpath_cache_ttl
      val: 7200
    - key: max_execution_time
      val: 60
    - key: max_input_time
      val: 60
    - key: post_max_size
      val: 24M
    - key: upload_max_filesize
      val: 50M
    - key: max_file_uploads
      val: 20
    - key: allow_url_fopen
      val: On
    - key: display_errors
      val: Off
    - key: html_errors
      val: Off
    - key: display_errors
      val: On
    - key: html_errors
      val: On
 - section: DATE
   options:
    - key: date.timezone
      val: Europe/Helsinki
 # - section: APC
 #   options: 
 #    - key: apc.shm_size
 #      val: 256M
 #    - key: apc.ttl
 #      val: 0
 #    - key: apc.user_ttl
 #      val: 7200
 #    - key: apc.stat
 #      val: 0
 # - section: suhosin
 #   options:
 #     - key: suhosin.mail.protect
 #       val: 2
 #     - key: suhosin.filter.action
 #       val: 402
 #     - key: suhosin.log.syslog
 #       val: S_ALL & ~S_SQL
 #     - key: suhosin.post.max_vars
 #       val: 1000
 #     - key: suhosin.request.max_vars
 #       val: 1000
 - section: OPCACHE
   options:
    - key: opcache.memory
      val: 256
    - key: opcache.validate
      val: 1
    - key: opcache.revalidate_freq
      val: 0

# MariaDB
mysql_root_password: <PASSWORD>
server_hostname: localhost
innodb_log_file_size: '128MB'
innodb_buffer_pool_size: '512MB'
wait_timeout: '3600'

# Varnish
varnish_port: '80'
varnish_memory: '512M'

varnish_backends:
  - name: web1
    host: localhost
    port: 8080
ssl_ip_fix: false

# Nginx
worker_processes: '1'
nginx_sites:
  - hostname: 'local.ansibleref.com *.local.ansibleref.com'
    port: '8080 default_server'
    docroot: '/vagrant/drupal/current'
    accesslog: true
    accesslog_params: 'main buffer=32k'
    errorlog: true
    logprefix: 'local.ansibleref.com'
    ssl: false
    sslproxy: false
    ssl_certificate: default.crt
    ssl_certificate_key: default.key
    include_drupal: true
    cdn: false
    nocdnhostname: 'www.wunder.io'
    redirect: false
    redirecthost: 'https://www.wunder.io'

{'fraction_non_alphanumeric': 0.10669330669330669, 'fraction_numerical': 0.03196803196803197, 'mean_word_length': 2.297760210803689, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '4699538', 'n_tokens_mistral': 2070, 'n_tokens_neox': 1889, 'n_words': 446}