<commit_before>default['php']['packages'] = %w{ php5 php5-fpm }

php_fpm_service_name = 'php5-fpm'
version = ''
conf_file = '/etc/' + php_fpm_service_name + (!version.empty? ? '-' + version : '') + '.conf'
pool_conf_dir = '/etc/' + php_fpm_service_name + (!version.empty? ? '-' + version : '') + '.d'

default['php-fpm']['service_name'] = php_fpm_service_name
default['php-fpm']['version'] = version
default['php-fpm']['conf_file'] = conf_file
default['php-fpm']['pool_conf_dir'] = pool_conf_dir
default['php-fpm']['user'] = 'www-data'
default['php-fpm']['group'] = 'www-data'
default['php-fpm']['pid'] = '/var/run/php-fpm' + (version.empty? ? '' : '/' + version) + '/php-fpm.pid'

default['php-fpm']['pools'] = [
  {
    'name' => 'www',
    'process_manager' => 'dynamic',
    'max_children' => 50,
    'start_servers' => 5,
    'min_spare_servers' => 5,
    'max_spare_servers' => 35,
    'max_requests' => 500,
    'catch_workers_output' => 'no',
    'security_limit_extensions' => '.php',
    'slowlog' => '/var/log/php-fpm/slow.log',
    'php_options' => {
      'php_admin_value[memory_limit]' => '128M',
      'php_admin_value[error_log]' => '/var/log/php-fpm/@version@poolerror.log',
      'php_admin_flag[log_errors]' => 'on',
      'php_value[session.save_handler]' => 'files',
      'php_value[session.save_path]' => '/var/lib/php/@versionsession'
    }
  },
  {
    'name' => 'backend'
  }
]

default['deploy']['test']['application'] = 'test'
default['deploy']['test']['application_type'] = 'php'
default['deploy']['test']['deploy_to'] = "/var/www/#{node['deploy']['test']['application']}"
default['deploy']['test']['user'] = 'www-data'
default['deploy']['test']['group'] = 'www-data'
default['deploy']['test']['domains'] = %w(test.dev.com www.test.dev.com backend.test.dev.com)
default['deploy']['test']['domain_pools'] = { 'www.test.dev.com' => 'www', 'backend.test.dev.com' => 'backend' }

#default['deploy']['test']['home'] = '/tmp/test_deploy_home'
#default['deploy']['test']['keep_releases'] = true
#default['deploy']['test']['environment'] =

# Repo details go in opsworks custom json


<commit_msg>Rely on opsworks default deploy user<commit_after>default['php']['packages'] = %w{ php5 php5-fpm }

php_fpm_service_name = 'php5-fpm'
version = ''
conf_file = '/etc/' + php_fpm_service_name + (!version.empty? ? '-' + version : '') + '.conf'
pool_conf_dir = '/etc/' + php_fpm_service_name + (!version.empty? ? '-' + version : '') + '.d'

default['php-fpm']['service_name'] = php_fpm_service_name
default['php-fpm']['version'] = version
default['php-fpm']['conf_file'] = conf_file
default['php-fpm']['pool_conf_dir'] = pool_conf_dir
default['php-fpm']['user'] = 'www-data'
default['php-fpm']['group'] = 'www-data'
default['php-fpm']['pid'] = '/var/run/php-fpm' + (version.empty? ? '' : '/' + version) + '/php-fpm.pid'

default['php-fpm']['pools'] = [
  {
    'name' => 'www',
    'process_manager' => 'dynamic',
    'max_children' => 50,
    'start_servers' => 5,
    'min_spare_servers' => 5,
    'max_spare_servers' => 35,
    'max_requests' => 500,
    'catch_workers_output' => 'no',
    'security_limit_extensions' => '.php',
    'slowlog' => '/var/log/php-fpm/slow.log',
    'php_options' => {
      'php_admin_value[memory_limit]' => '128M',
      'php_admin_value[error_log]' => '/var/log/php-fpm/@version@poolerror.log',
      'php_admin_flag[log_errors]' => 'on',
      'php_value[session.save_handler]' => 'files',
      'php_value[session.save_path]' => '/var/lib/php/@versionsession'
    }
  },
  {
    'name' => 'backend'
  }
]

default['deploy']['test']['application'] = 'test'
default['deploy']['test']['application_type'] = 'php'
default['deploy']['test']['deploy_to'] = "/var/www/#{node['deploy']['test']['application']}"
#default['deploy']['test']['user'] = 'www-data'
#default['deploy']['test']['group'] = 'www-data'
d#efault['deploy']['test']['domains'] = %w(test.dev.com www.test.dev.com backend.test.dev.com)
default['deploy']['test']['domain_pools'] = { 'www.test.dev.com' => 'www', 'backend.test.dev.com' => 'backend' }

#default['deploy']['test']['home'] = '/tmp/test_deploy_home'
#default['deploy']['test']['keep_releases'] = true
#default['deploy']['test']['environment'] =

# Repo details go in opsworks custom json



{'fraction_non_alphanumeric': 0.24788930581613508, 'fraction_numerical': 0.007035647279549718, 'mean_word_length': 5.0754985754985755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 18, 'xml': 0}, 'pii_count': 2, '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': '4080410', 'n_tokens_mistral': 1623, 'n_tokens_neox': 1547, 'n_words': 207}