You are here

chef.yml in Drupal driver for SQL Server and SQL Azure 8.2

chef/chef.yml

File

chef/chef.yml
View source
  1. id: 'sqlsrv'
  2. deployers:
  3. app:
  4. type: 'app'
  5. iis:
  6. type: 'iis'
  7. pools:
  8. default:
  9. Enable32BitAppOnWin64: true
  10. AutoStart: true
  11. ManagedPipelineMode: Integrated
  12. StartMode: AlwaysRunning
  13. ManagedRuntimeVersion: ''
  14. mounts:
  15. root: { root: true, path: '/web' }
  16. bindings:
  17. public: { hostname: 'sqlsrv.drupal.org', port: 80, interface: 'local', addtohosts: true }
  18. php:
  19. type: 'php'
  20. runtime:
  21. - {type: 'dl', uri: 'https://windows.php.net/downloads/releases/archives/php-7.4.7-nts-Win32-vc15-x64.zip', maps: {'*' : 'php/'}}
  22. - {type: 'dl', uri: 'https://windows.php.net/downloads/pecl/releases/xdebug/2.9.6/php_xdebug-2.9.6-7.4-nts-vc15-x64.zip', maps: {'php_xdebug.dll':'php/ext/php_xdebug.dll'}}
  23. - {type: 'dl', uri: 'https://windows.php.net/downloads/pecl/releases/igbinary/3.1.2/php_igbinary-3.1.2-7.4-nts-vc15-x64.zip', maps: {'php_igbinary.dll': 'php/ext/php_igbinary.dll'}}
  24. - {type: 'dl', uri: 'https://windows.php.net/downloads/pecl/releases/couchbase/2.6.2/php_couchbase-2.6.2-7.4-nts-vc15-x64.zip', maps: {'php_couchbase.dll':'php/ext/php_couchbase.dll', 'libcouchbase.dll':'php/libcouchbase.dll'}}
  25. - {type: 'dl', uri: 'https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/5.8.1/php_pdo_sqlsrv-5.8.1-7.4-nts-vc15-x64.zip', maps: {'php_pdo_sqlsrv.dll': 'php/ext/php_pdo_sqlsrv.dll'}}
  26. - {type: 'dl', uri: 'file://phpbin/php_wincache.zip', maps: {'php_wincache.dll': 'php/ext/php_wincache.dll'}}
  27. - {type: 'dl', uri: 'file://phpbin/php_blackfire.zip', maps: {'php_blackfire.dll': 'php/ext/php_blackfire.dll'}}
  28. # CERTIFICATES
  29. - {type: 'dl', uri: 'http://curl.haxx.se/ca/cacert.pem', maps: {'cacert.pem': '/cacert.pem'}}
  30. - {type: 'file', 'action':'copy', 'source':'php/php.ini-production', 'destination':'php/php.ini'}
  31. - {type: 'ini', 'key':curl.cainfo, 'value':'%RUNTIME%/cacert.pem'}
  32. - {type: 'ini', 'key':openssl.cafile, 'value':'%RUNTIME%/cacert.pem'}
  33. # EXTENSION DIR
  34. - {type: 'ini', 'key':extension_dir, 'value':'%RUNTIME%/php/ext'}
  35. # EXTENSION SETTINGS
  36. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_intl.dll}
  37. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_bz2.dll}
  38. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_curl.dll}
  39. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_enchant.dll}
  40. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_exif.dll}
  41. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_fileinfo.dll}
  42. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_gettext.dll}
  43. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_gd2.dll}
  44. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_mbstring.dll}
  45. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_openssl.dll}
  46. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_soap.dll}
  47. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_xmlrpc.dll}
  48. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_wincache.dll}
  49. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_pdo_sqlsrv.dll}
  50. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_igbinary.dll}
  51. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_couchbase.dll}
  52. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_com_dotnet.dll}
  53. - {type: 'ini', multivalue: true, 'key':extension, 'value':php_blackfire.dll}
  54. - {type: 'ini', multivalue: true, 'key':zend_extension, 'value':php_xdebug.dll}
  55. - {type: 'ini', multivalue: true, 'key':zend_extension, 'value':php_opcache.dll}
  56. - {type: 'ini', 'key':disable_functions, 'value':'passthru,show_source'}
  57. # SQLSERVER
  58. - {type: 'ini', 'key':pdo_sqlsrv.client_buffer_max_kb_size, 'value':24480}
  59. # XDEBUG
  60. - {type: 'ini', 'key':'xdebug.remote_enable', 'value':'on'}
  61. - {type: 'ini', 'key':'xdebug.remote_handler', 'value':'dbgp'}
  62. - {type: 'ini', 'key':'xdebug.remote_host', 'value':'127.0.0.1'}
  63. - {type: 'ini', 'key':'xdebug.remote_connect_back', 'value':'0'}
  64. - {type: 'ini', 'key':'xdebug.remote_port', 'value':'9000'}
  65. - {type: 'ini', 'key':'xdebug.remote_mode', 'value':'req'}
  66. - {type: 'ini', 'key':'xdebug.remote_autostart', 'value':'0'}
  67. - {type: 'ini', 'key':'xdebug.idekey', 'value':'php-vs'}
  68. - {type: 'ini', 'key':'xdebug.profiler_output_dir', 'value':'%LOG%/xdebug_profile', ensureDir: 'dir'}
  69. - {type: 'ini', 'key':'xdebug.trace_output_dir', 'value':'%LOG%/xdebug_trace', ensureDir: 'dir'}
  70. - {type: 'ini', 'key':'xdebug.remote_log', 'value':'%LOG%/remote_%DEPLOYMENTID%.log', ensureDir: 'file'}
  71. - {type: 'ini', 'key':'xdebug.trace_output_name', 'value':'trace.%u'}
  72. - {type: 'ini', 'key':'xdebug.profiler_output_name', 'value':'profile.%u'}
  73. # RUNTIME DIRECTORIES
  74. - {type: 'ini', 'key':error_log, 'value':'%LOG%/php_error_%DEPLOYMENTID%.log', ensureDir: 'file'}
  75. - {type: 'ini', 'key':upload_tmp_dir, 'value':'%TEMP%/upload_temp_dir', ensureDir: 'dir'}
  76. - {type: 'ini', 'key':session.save_path, 'value':'%TEMP%/session_save_path/', ensureDir: 'file'}
  77. - {type: 'ini', 'key':date.timezone, 'value':'Europe/Madrid'}
  78. # WINCACHE...
  79. - {type: 'ini', 'key':wincache.fcenabled, 'value': 0}
  80. - {type: 'ini', 'key':wincache.ucenabled, 'value': 1}
  81. - {type: 'ini', 'key':wincache.fcachesize , 'value': 8}
  82. - {type: 'ini', 'key':wincache.maxfilesize, 'value': 3000}
  83. - {type: 'ini', 'key':wincache.ucachesize , 'value': 128}
  84. - {type: 'ini', 'key':wincache.scachesize , 'value': 5}
  85. - {type: 'ini', 'key':wincache.reroute_enabled , 'value': 0}
  86. - {type: 'ini', 'key':wincache.filemapdir , 'value':'%RUNTIME%/wincache_filemap', ensureDir: 'dir'}
  87. - {type: 'ini', 'key':wincache.enablecli , 'value':'On'}
  88. # GENERIC
  89. - {type: 'ini','key':fastcgi.impersonate , 'value': 1}
  90. - {type: 'ini','key':cgi.fix_pathinfo , 'value': 1}
  91. - {type: 'ini','key':cgi.force_redirect , 'value': 0}
  92. - {type: 'ini','key':fastcgi.logging , 'value': 0}
  93. - {type: 'ini','key':realpath_cache_size , 'value': '256K'}
  94. - {type: 'ini','key':realpath_cache_ttl , 'value': 3600}
  95. - {type: 'ini','key':max_input_vars , 'value': 8000}
  96. - {type: 'ini','key':memory_limit , 'value': 2048M}
  97. - {type: 'ini','key':max_input_vars , 'value': 8000}
  98. - {type: 'ini','key':max_execution_time , 'value': 600}
  99. - {type: 'ini','key':upload_max_filesize , 'value': 32M}
  100. - {type: 'ini','key':post_max_size , 'value': 32M}
  101. # OPCACHE
  102. - {type: 'ini','key':opcache.enable , 'value': 1}
  103. - {type: 'ini','key':opcache.memory_consumption , 'value': 256}
  104. - {type: 'ini','key':opcache.max_accelerated_files , 'value': 25000}
  105. - {type: 'ini','key':opcache.revalidate_freq , 'value': 2}
  106. - {type: 'ini','key':opcache.interned_strings_buffer , 'value': 16}
  107. - {type: 'ini','key':opcache.validate_timestamps , 'value': 1}
  108. - {type: 'ini','key':opcache.enable_cli , 'value': 1}
  109. - {type: 'ini','key':opcache.file_cache_only , 'value': 0}
  110. - {type: 'ini','key':opcache.file_cache , 'value':'%RUNTIME%/opcache_filecache', ensureDir: 'dir'}
  111. services:
  112. contents:
  113. type: 'disk'
  114. mounts:
  115. files:
  116. path: 'files'
  117. mountpath: 'web/sites/default/files'
  118. private:
  119. path: 'private'
  120. temp:
  121. path: 'temporary'
  122. # default:
  123. # type: 'sqlsrv'
  124. # couchbase:
  125. # type: 'couchbase'
  126. cron:
  127. type: 'scheduler'
  128. command: '& ".\drupal" "cron:execute"'
  129. frequency: 2