Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1. ---
  2. # `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
  3. # geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
  4. vagrant_box: geerlingguy/ubuntu1404
  5. vagrant_user: vagrant
  6. vagrant_synced_folder_default_type: nfs
  7.  
  8. # If you need to run multiple instances of Drupal VM, set a unique hostname,
  9. # machine name, and IP address for each instance.
  10. vagrant_hostname: ws.dev
  11. vagrant_machine_name: ws
  12. vagrant_ip: 192.168.88.89
  13.  
  14. # Allow Drupal VM to be accessed via a public network interface on your host.
  15. # Vagrant boxes are insecure by default, so be careful. You've been warned!
  16. # See: https://docs.vagrantup.com/v2/networking/public_network.html
  17. vagrant_public_ip: ""
  18.  
  19. # A list of synced folders, with the keys 'local_path', 'destination', and
  20. # a 'type' of [nfs|rsync|smb] (leave empty for slow native shares). See
  21. # http://docs.drupalvm.com/en/latest/extras/syncing-folders/ for more info.
  22. vagrant_synced_folders:
  23. # The first synced folder will be used for the default Drupal installation, if
  24. # build_makefile: is 'true'.
  25. - local_path: ~/www/4k/marketing-aquifer
  26. destination: /var/www/forcepoint
  27. type: nfs
  28. create: true
  29.  
  30. # Memory and CPU to use for this VM.
  31. vagrant_memory: 2048
  32. vagrant_cpus: 2
  33.  
  34. # The web server software to use. Can be either 'apache' or 'nginx'.
  35. drupalvm_webserver: apache
  36.  
  37. # Set this to false if you are using a different site deployment strategy and
  38. # would like to configure 'vagrant_synced_folders' and 'apache_vhosts' manually.
  39. build_makefile: false
  40. drush_makefile_path: /vagrant/drupal.make.yml
  41.  
  42. # Set this to false if you don't need to install drupal (using the drupal_*
  43. # settings below), but instead copy down a database (e.g. using drush sql-sync).
  44. install_site: false
  45.  
  46. # Settings for building a Drupal site from a makefile (if 'build_makefile:'
  47. # is 'true').
  48. drupal_major_version: 7
  49. drupal_core_path: "/var/www/forcepoint/build"
  50. drupal_domain: "forcepoint.dev"
  51. drupal_site_name: "Forcepoint"
  52. drupal_install_profile: acquia
  53. drupal_enable_modules: [ 'devel' ]
  54. drupal_account_name: admin
  55. drupal_account_pass: admin
  56. drupal_mysql_user: drupal
  57. drupal_mysql_password: drupal
  58. drupal_mysql_database: drupal
  59.  
  60. # Additional arguments or options to pass to `drush site-install`.
  61. drupal_site_install_extra_args: []
  62.  
  63. # Cron jobs are added to the root user's crontab. Keys include name (required),
  64. # minute, hour, day, weekday, month, job (required), and state.
  65. drupalvm_cron_jobs: []
  66. # - {
  67. # name: "Drupal Cron",
  68. # minute: "*/30",
  69. # job: "drush -r {{ drupal_core_path }} core-cron"
  70. # }
  71.  
  72. # Drupal VM automatically creates a drush alias file in your ~/.drush folder if
  73. # this variable is 'true'.
  74. configure_local_drush_aliases: true
  75.  
  76. # Apache VirtualHosts. Add one for each site you are running inside the VM. For
  77. # multisite deployments, you can point multiple servernames at one documentroot.
  78. # View the geerlingguy.apache Ansible Role README for more options.
  79. apache_vhosts:
  80. - servername: "{{ drupal_domain }}"
  81. documentroot: "{{ drupal_core_path }}"
  82. extra_parameters: |
  83. ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000{{ drupal_core_path }}"
  84.  
  85. - servername: "adminer.forcepoint.dev"
  86. documentroot: "/opt/adminer"
  87. extra_parameters: |
  88. ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/opt/adminer"
  89.  
  90. - servername: "xhprof.forcepoint.dev"
  91. documentroot: "/usr/share/php/xhprof_html"
  92. extra_parameters: |
  93. ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/usr/share/php/xhprof_html"
  94.  
  95. - servername: "pimpmylog.forcepoint.dev"
  96. documentroot: "/usr/share/php/pimpmylog"
  97. extra_parameters: |
  98. ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/usr/share/php/pimpmylog"
  99.  
  100. apache_remove_default_vhost: true
  101. apache_mods_enabled:
  102. - expires.load
  103. - ssl.load
  104. - rewrite.load
  105.  
  106. # Nginx hosts. Each site will get a server entry using the configuration defined
  107. # here. Set the 'is_php' property for document roots that contain PHP apps like
  108. # Drupal.
  109. nginx_hosts:
  110. - server_name: "{{ drupal_domain }}"
  111. root: "{{ drupal_core_path }}"
  112. is_php: true
  113.  
  114. - server_name: "adminer.drupalvm.dev"
  115. root: "/opt/adminer"
  116. is_php: true
  117.  
  118. - server_name: "xhprof.drupalvm.dev"
  119. root: "/usr/share/php/xhprof_html"
  120. is_php: true
  121.  
  122. - server_name: "pimpmylog.drupalvm.dev"
  123. root: "/usr/share/php/pimpmylog"
  124. is_php: true
  125.  
  126. nginx_remove_default_vhost: true
  127.  
  128. # MySQL Databases and users. If build_makefile: is true, first database will
  129. # be used for the makefile-built site.
  130. mysql_databases:
  131. - name: "{{ drupal_mysql_database }}"
  132. encoding: utf8
  133. collation: utf8_general_ci
  134.  
  135. mysql_users:
  136. - name: "{{ drupal_mysql_user }}"
  137. host: "%"
  138. password: "{{ drupal_mysql_password }}"
  139. priv: "{{ drupal_mysql_database }}.*:ALL"
  140.  
  141. # Comment out any extra utilities you don't want to install. If you don't want
  142. # to install *any* extras, make set this value to an empty set, e.g. `[]`.
  143. installed_extras:
  144. - adminer
  145. - drupalconsole
  146. - mailhog
  147. - memcached
  148. - nodejs
  149. - pimpmylog
  150. # - redis
  151. # - ruby
  152. # - selenium
  153. - solr
  154. - varnish
  155. - xdebug
  156. - xhprof
  157.  
  158. # Add any extra apt or yum packages you would like installed.
  159. extra_packages:
  160. - unzip
  161.  
  162. # `nodejs` must be in installed_extras for this to work.
  163. nodejs_version: "0.12"
  164. nodejs_npm_global_packages:
  165. - name: aquifer
  166.  
  167. # `ruby` must be in installed_extras for this to work.
  168. ruby_install_gems_user: "{{ vagrant_user }}"
  169. ruby_install_gems: []
  170.  
  171. # You can configure almost anything else on the server in the rest of this file.
  172. extra_security_enabled: false
  173.  
  174. drush_version: master
  175. drush_keep_updated: true
  176. drush_composer_cli_options: "--prefer-dist --no-interaction"
  177.  
  178. firewall_allowed_tcp_ports:
  179. - "22"
  180. - "25"
  181. - "80"
  182. - "81"
  183. - "443"
  184. - "4444"
  185. - "8025"
  186. - "8080"
  187. - "8443"
  188. - "8983"
  189. firewall_log_dropped_packets: false
  190.  
  191. # PHP Configuration. Currently-supported versions: 5.5, 5.6, 7.0.
  192. php_version: "5.6"
  193. php_memory_limit: "192M"
  194. php_display_errors: "On"
  195. php_display_startup_errors: "On"
  196. php_enable_php_fpm: true
  197. php_realpath_cache_size: "1024K"
  198. php_sendmail_path: "/usr/sbin/ssmtp -t"
  199. php_opcache_enabled_in_ini: true
  200. php_opcache_memory_consumption: "192"
  201. php_opcache_max_accelerated_files: 4096
  202. php_max_input_vars: "4000"
  203.  
  204. composer_path: /usr/bin/composer
  205. composer_home_path: '/home/vagrant/.composer'
  206. # composer_global_packages:
  207. # - { name: phpunit/phpunit, release: '@stable' }
  208.  
  209. # Run specified scripts after VM is provisioned. Path is relative to the
  210. # `provisioning/playbook.yml` file.
  211. post_provision_scripts:
  212. - vm_config.sh
  213.  
  214. # MySQL Configuration.
  215. mysql_root_password: root
  216. mysql_slow_query_log_enabled: true
  217. mysql_slow_query_time: 2
  218. mysql_wait_timeout: 300
  219. adminer_install_filename: index.php
  220.  
  221. # Varnish Configuration.
  222. varnish_listen_port: "81"
  223. varnish_default_vcl_template_path: templates/drupalvm.vcl.j2
  224. varnish_default_backend_host: "127.0.0.1"
  225. varnish_default_backend_port: "80"
  226.  
  227. # Pimp my Log settings.
  228. pimpmylog_install_dir: /usr/share/php/pimpmylog
  229. pimpmylog_grant_all_privs: true
  230.  
  231. # XDebug configuration. XDebug is disabled by default for better performance.
  232. php_xdebug_default_enable: 0
  233. php_xdebug_coverage_enable: 0
  234. php_xdebug_cli_enable: 1
  235. php_xdebug_remote_enable: 1
  236. php_xdebug_remote_connect_back: 1
  237. # Use PHPSTORM for PHPStorm, sublime.xdebug for Sublime Text.
  238. php_xdebug_idekey: PHPSTORM
  239. php_xdebug_max_nesting_level: 256
  240.  
  241. # Solr Configuration (if enabled above).
  242. solr_version: "4.10.4"
  243. solr_xms: "64M"
  244. solr_xmx: "128M"
  245.  
  246. # Selenium configuration.
  247. selenium_version: 2.46.0
  248.  
  249. # Other configuration.
  250. known_hosts_path: ~/.ssh/known_hosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement