Advertisement
Guest User

Untitled

a guest
May 30th, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.78 KB | None | 0 0
  1. ---
  2. # `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
  3. # geerlingguy/debian8, geerlingguy/ubuntu1404, geerlingguy/ubuntu1204, etc.
  4. vagrant_box: geerlingguy/ubuntu1604
  5. vagrant_user: vagrant
  6. vagrant_synced_folder_default_type: nfs
  7. vagrant_gui: false
  8.  
  9. # If you need to run multiple instances of Drupal VM, set a unique hostname,
  10. # machine name, and IP address for each instance.
  11. vagrant_hostname: xy.zzz.local
  12. vagrant_machine_name: xyzzz
  13. vagrant_ip: 192.168.88.88
  14.  
  15. # Allow Drupal VM to be accessed via a public network interface on your host.
  16. # Vagrant boxes are insecure by default, so be careful. You've been warned!
  17. # See: https://docs.vagrantup.com/v2/networking/public_network.html
  18. vagrant_public_ip: ""
  19.  
  20. # A list of synced folders, with the keys 'local_path', 'destination', and
  21. # a 'type' of [nfs|rsync|smb] (leave empty for slow native shares). See
  22. # http://docs.drupalvm.com/en/latest/getting-started/syncing-folders/ for more.
  23. vagrant_synced_folders:
  24. # The first synced folder will be used for the default Drupal installation, if
  25. # any of the build_* settings are 'true'. By default the folder is set to
  26. # the drupal-vm folder.
  27. - local_path: .
  28. destination: /var/www/drupalvm
  29. type: nfs
  30. create: true
  31.  
  32. # Memory and CPU to use for this VM.
  33. vagrant_memory: 2048
  34. vagrant_cpus: 1
  35.  
  36. # Minimum required versions.
  37. drupalvm_vagrant_version_min: '1.8.6'
  38. drupalvm_ansible_version_min: '2.2'
  39.  
  40. # Force use of ansible_local provisioner, even if Ansible is installed on host.
  41. force_ansible_local: false
  42.  
  43. # The web server software to use. Can be either 'apache' or 'nginx'.
  44. drupalvm_webserver: apache
  45.  
  46. # The database system to use. Can be either 'mysql' or 'pgsql'.
  47. drupal_db_backend: mysql
  48.  
  49. # Set this to 'false' if you are using a different site deployment strategy and
  50. # would like to configure 'vagrant_synced_folders' and 'apache_vhosts' manually.
  51. drupal_build_makefile: false
  52. drush_makefile_path: "{{ config_dir }}/drupal.make.yml"
  53. drush_make_options: "--no-gitinfofile"
  54.  
  55. # Set 'build_makefile' to 'false' and this to 'true' if you are using a
  56. # composer based site deployment strategy.
  57. drupal_build_composer: false
  58. drupal_composer_path: "{{ config_dir }}/drupal.composer.json"
  59. drupal_composer_install_dir: "/var/www/drupalvm/drupal"
  60. drupal_composer_dependencies:
  61. - "drupal/devel:1.x-dev"
  62.  
  63. # Set this to 'true' and 'build_makefile', 'build_composer' to 'false' if you
  64. # are using Composer's create-project as a site deployment strategy.
  65. drupal_build_composer_project: true
  66. drupal_composer_project_package: "drupal-composer/drupal-project:8.x-dev"
  67. drupal_composer_project_options: "--prefer-dist --stability dev --no-interaction"
  68.  
  69. # Set this to 'false' if you don't need to install drupal (using the drupal_*
  70. # settings below), but instead copy down a database (e.g. using drush sql-sync).
  71. drupal_install_site: true
  72.  
  73. # Required Drupal settings.
  74. drupal_core_path: "{{ drupal_composer_install_dir }}/web"
  75. drupal_core_owner: "{{ drupalvm_user }}"
  76. drupal_db_user: drupal
  77. drupal_db_password: drupal
  78. drupal_db_name: drupal
  79.  
  80. # Settings for installing a Drupal site if 'install_site:' is 'true'.
  81. drupal_major_version: 8
  82. drupal_domain: "{{ vagrant_hostname }}"
  83. drupal_site_name: "Behets.me"
  84. drupal_install_profile: standard
  85. drupal_enable_modules: [ 'devel' ]
  86. drupal_account_name: admin
  87. drupal_account_pass: admin
  88.  
  89. # Additional arguments or options to pass to `drush site-install`.
  90. drupal_site_install_extra_args: []
  91.  
  92. # Cron jobs are added to the vagrant user's crontab. Keys include name
  93. # (required), minute, hour, day, weekday, month, job (required), and state.
  94. drupalvm_cron_jobs: []
  95.  
  96. # Drupal VM automatically creates a drush alias file in your ~/.drush folder if
  97. # this variable is 'true'.
  98. configure_drush_aliases: true
  99. drush_aliases_host_template: "templates/drupalvm.aliases.drushrc.php.j2"
  100. drush_aliases_guest_template: "templates/drupalvm-local.aliases.drushrc.php.j2"
  101.  
  102. # Helper variable to configure the PHP-FPM connection for each Apache
  103. # VirtualHost in the `apache_vhosts` list.
  104. apache_vhost_php_fpm_parameters: |
  105. <FilesMatch \.php$>
  106. SetHandler "proxy:fcgi://{{ php_fpm_listen }}"
  107. </FilesMatch>
  108.  
  109. # Apache VirtualHosts. Add one for each site you are running inside the VM. For
  110. # multisite deployments, you can point multiple servernames at one documentroot.
  111. # View the geerlingguy.apache Ansible Role README for more options.
  112. apache_vhosts:
  113. - servername: "{{ drupal_domain }}"
  114. serveralias: "www.{{ drupal_domain }}"
  115. documentroot: "{{ drupal_core_path }}"
  116. extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  117.  
  118. - servername: "adminer.{{ vagrant_hostname }}"
  119. documentroot: "{{ adminer_install_dir }}"
  120. extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  121.  
  122. - servername: "xhprof.{{ vagrant_hostname }}"
  123. documentroot: "{{ php_xhprof_html_dir }}"
  124. extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  125.  
  126. - servername: "pimpmylog.{{ vagrant_hostname }}"
  127. documentroot: "{{ pimpmylog_install_dir }}"
  128. extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  129.  
  130. - servername: "{{ vagrant_ip }}"
  131. serveralias: "dashboard.{{ vagrant_hostname }}"
  132. documentroot: "{{ dashboard_install_dir }}"
  133. extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  134.  
  135. apache_packages_state: latest
  136. apache_remove_default_vhost: true
  137. apache_mods_enabled:
  138. - expires.load
  139. - ssl.load
  140. - rewrite.load
  141. - proxy.load
  142. - proxy_fcgi.load
  143.  
  144. # Nginx hosts. Each site will get a server entry using the configuration defined
  145. # here. Set the 'is_php' property for document roots that contain PHP apps like
  146. # Drupal.
  147. nginx_hosts:
  148. - server_name: "{{ drupal_domain }} www.{{ drupal_domain }}"
  149. root: "{{ drupal_core_path }}"
  150. is_php: true
  151.  
  152. - server_name: "adminer.{{ vagrant_hostname }}"
  153. root: "{{ adminer_install_dir }}"
  154. is_php: true
  155.  
  156. - server_name: "xhprof.{{ vagrant_hostname }}"
  157. root: "{{ php_xhprof_html_dir }}"
  158. is_php: true
  159.  
  160. - server_name: "pimpmylog.{{ vagrant_hostname }}"
  161. root: "{{ pimpmylog_install_dir }}"
  162. is_php: true
  163.  
  164. - server_name: "{{ vagrant_ip }} dashboard.{{ vagrant_hostname }}"
  165. root: "{{ dashboard_install_dir }}"
  166. is_php: true
  167.  
  168. nginx_remove_default_vhost: true
  169. nginx_ppa_use: true
  170. nginx_vhost_template: "templates/nginx-vhost.conf.j2"
  171.  
  172. # MySQL databases and users.
  173. mysql_databases:
  174. - name: "{{ drupal_db_name }}"
  175. encoding: utf8mb4
  176. collation: utf8mb4_general_ci
  177.  
  178. mysql_users:
  179. - name: "{{ drupal_db_user }}"
  180. host: "%"
  181. password: "{{ drupal_db_password }}"
  182. priv: "{{ drupal_db_name }}.*:ALL"
  183.  
  184. # PostgreSQL databases and users.
  185. postgresql_databases:
  186. - name: "{{ drupal_db_name }}"
  187.  
  188. postgresql_users:
  189. - name: "{{ drupal_db_user }}"
  190. password: "{{ drupal_db_password }}"
  191. db: "{{ drupal_db_name }}"
  192. priv: "ALL"
  193.  
  194. # Comment out any extra utilities you don't want to install. If you don't want
  195. # to install *any* extras, set this value to an empty set, e.g. `[]`.
  196. installed_extras:
  197. - adminer
  198. # - blackfire
  199. - drupalconsole
  200. - drush
  201. # - elasticsearch
  202. # - java
  203. - mailhog
  204. - memcached
  205. # - newrelic
  206. - nodejs
  207. - pimpmylog
  208. - redis
  209. # - ruby
  210. - selenium
  211. - solr
  212. # - tideways
  213. - upload-progress
  214. - varnish
  215. - xdebug
  216. - xhprof
  217.  
  218. # Add any extra apt or yum packages you would like installed.
  219. extra_packages:
  220. - sqlite
  221.  
  222. # You can configure almost anything else on the server in the rest of this file.
  223. drush_version: "8.1.10"
  224.  
  225. extra_security_enabled: false
  226.  
  227. firewall_enabled: true
  228. firewall_allowed_tcp_ports:
  229. - "22"
  230. - "25"
  231. - "80"
  232. - "81"
  233. - "443"
  234. - "4444"
  235. - "8025"
  236. - "8080"
  237. - "8443"
  238. - "8983"
  239. - "9200"
  240. firewall_log_dropped_packets: false
  241. firewall_disable_firewalld: true
  242. firewall_disable_ufw: true
  243.  
  244. # PHP Configuration. Currently-supported versions: 5.6, 7.0, 7.1.
  245. # See version-specific notes: http://docs.drupalvm.com/en/latest/configurations/php/
  246. php_version: "7.1"
  247. php_install_recommends: no
  248. php_memory_limit: "192M"
  249. php_display_errors: "On"
  250. php_display_startup_errors: "On"
  251. php_realpath_cache_size: "1024K"
  252. php_sendmail_path: "/opt/mailhog/mhsendmail"
  253. php_opcache_enabled_in_ini: false
  254. php_opcache_memory_consumption: "192"
  255. php_opcache_max_accelerated_files: 4096
  256. php_max_input_vars: "4000"
  257.  
  258. # Drupal VM defaults to using PHP-FPM with either Apache or Nginx. If you wish
  259. # to instead use Apache + mod_php with an Ubuntu base box, make sure you add
  260. # libapache2-mod-php7.0 to `extra_packages` elsewhere in this config file.
  261. php_enable_php_fpm: true
  262. php_fpm_listen: "127.0.0.1:9000"
  263.  
  264. composer_path: /usr/bin/composer
  265. composer_home_path: "/home/{{ drupalvm_user }}/.composer"
  266. composer_home_owner: "{{ drupalvm_user }}"
  267. composer_home_group: "{{ drupalvm_user }}"
  268. composer_global_packages:
  269. - { name: hirak/prestissimo, release: '^0.3' }
  270.  
  271. # Run specified scripts before or after VM is provisioned. Path is relative to
  272. # the `provisioning/playbook.yml` file.
  273. pre_provision_scripts: []
  274. post_provision_scripts: []
  275. # - "../examples/scripts/configure-solr.sh"
  276.  
  277. # MySQL Configuration.
  278. mysql_root_password: root
  279. mysql_slow_query_log_enabled: true
  280. mysql_slow_query_time: 2
  281. mysql_wait_timeout: 300
  282. adminer_install_filename: index.php
  283.  
  284. # Node.js configuration (if enabled above).
  285. # Valid examples: "0.10", "0.12", "4.x", "5.x", "6.x".
  286. nodejs_version: "6.x"
  287. nodejs_npm_global_packages: []
  288. nodejs_install_npm_user: "{{ drupalvm_user }}"
  289. npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"
  290.  
  291. # Ruby Configuration (if enabled above).
  292. ruby_install_gems_user: "{{ drupalvm_user }}"
  293. ruby_install_gems: []
  294.  
  295. # Varnish Configuration (if enabled above).
  296. varnish_listen_port: "81"
  297. varnish_default_vcl_template_path: templates/drupalvm.vcl.j2
  298. varnish_default_backend_host: "127.0.0.1"
  299. varnish_default_backend_port: "80"
  300.  
  301. # Pimp my Log settings.
  302. pimpmylog_install_dir: /usr/share/php/pimpmylog
  303. pimpmylog_grant_all_privs: true
  304.  
  305. # XDebug configuration. XDebug is disabled by default for better performance.
  306. php_xdebug_default_enable: 0
  307. php_xdebug_coverage_enable: 0
  308. php_xdebug_cli_enable: 1
  309. php_xdebug_remote_enable: 1
  310. php_xdebug_remote_connect_back: 1
  311. # Use PHPSTORM for PHPStorm, sublime.xdebug for Sublime Text.
  312. php_xdebug_idekey: PHPSTORM
  313. php_xdebug_max_nesting_level: 256
  314. php_xdebug_remote_host: "{{ ansible_default_ipv4.gateway }}"
  315.  
  316. # Solr Configuration (if enabled above).
  317. solr_version: "5.5.3"
  318. solr_xms: "64M"
  319. solr_xmx: "128M"
  320.  
  321. # Selenium configuration.
  322. selenium_version: 2.53.0
  323.  
  324. # Docker configuration.
  325. docker_container_name: drupal-vm
  326. docker_image_name: drupal-vm
  327. docker_image_path: ~/Downloads
  328.  
  329. # Other configuration.
  330. dashboard_install_dir: /var/www/dashboard
  331. known_hosts_path: ~/.ssh/known_hosts
  332. hostname_configure: true
  333. hostname_fqdn: "{{ vagrant_hostname }}"
  334. ssh_home: "{{ drupal_core_path }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement