# The options in this file override the defaults provided by DrupalVM. For a
# comprehensive list of possible options, see DrupalVM's default.config.yml.
# @see https://github.com/geerlingguy/drupal-vm/blob/master/default.config.yml

# Update the hostname to the local development environment hostname.
vagrant_hostname: ${vm.vagrant.hostname}
vagrant_machine_name: ${project.machine_name}

# Set the IP address so it doesn't conflict with other Drupal VM instances.
vagrant_ip: ${random.ip}

# Use Ubuntu 16.04 LTS to match Acquia Cloud environments.
vagrant_box: ${base_box}
workspace: ${workspace}

# Set drupal_site_name to the project's human-readable name.
drupal_site_name: "${project.human_name}"

# Provide the path to the project root to Vagrant.
vagrant_synced_folders:
  # Set the local_path for the first synced folder to `.`.
  - local_path: .
    # Set the destination to the Acquia Cloud subscription machine name.
    destination: /var/www/${project.machine_name}
    type: nfs

drupal_build_composer_project: false
drupal_composer_path: false
drupal_composer_install_dir: "/var/www/${project.machine_name}"
drupal_core_path: "/var/www/${project.machine_name}/docroot"
ssh_home: /var/www/${project.machine_name}

# Multisite installations should configure additional domains here.
apache_vhosts:
  # Drupal VM's default domain, evaluating to whatever `vagrant_hostname` is set to (drupalvm.dev by default).
  - servername: "{{ drupal_domain }}"
    serveralias: "www.{{ drupal_domain }}"
    documentroot: "{{ drupal_core_path }}"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  # Domain for the Drupal VM Dashboard
  - servername: "dashboard.{{ drupal_domain }}"
    serveralias: "www.dashboard.{{ drupal_domain }}"
    documentroot: "/var/www/dashboard"
    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"
  - servername: 'adminer.{{ drupal_domain }}'
    serveralias: 'www.adminer.{{ drupal_domain }}'
    documentroot: '{{ adminer_install_dir }}'
    extra_parameters: '{{ apache_vhost_php_fpm_parameters }}'

#  - servername: "local.second-drupal-site.com"
#    documentroot: "{{ drupal_core_path }}"
#    extra_parameters: "{{ apache_vhost_php_fpm_parameters }}"

# Multisite installations should configure additional databases here.
# It's recommended to prefix database names with 'drupal'. Otherwise,
# you'll need to add additional users in the 'mysql_users' section.
mysql_databases:
  - name: drupal
    encoding: utf8
    collation: utf8_general_ci
#  - name: drupal_two
#    encoding: utf8
#    collation: utf8_general_ci

mysql_users:
  - name: drupal
    host: "%"
    password: drupal
    priv: "drupal%.*:ALL"

# Set this to 'false' if you don't need to install drupal (using the drupal_*
# settings below), but instead copy down a database (e.g., using drush sql-sync).
drupal_install_site: false

# Drupal VM automatically creates a drush alias file in your ~/.drush folder if
# this variable is 'true'.
configure_drush_aliases: false

extra_packages: ${extra_packages}
installed_extras: ${installed_extras}

# PHP 7.2.
php_version: "7.2"
php_packages_extra:
  - "php{{ php_version }}-bz2"
  - "php{{ php_version }}-imagick"
  - imagemagick

# XDebug configuration.
php_xdebug_version: 2.7.1
# Change this value to 1 in order to enable xdebug by default.
php_xdebug_default_enable: 0
php_xdebug_cli_disable: yes
php_xdebug_remote_port: "9000"
php_memory_limit: "512M"

# Acquia Search defaults to 4.5.1.
solr_version: "4.5.1"

post_provision_scripts:
  - "../../../acquia/blt/scripts/drupal-vm/configure-solr.sh"
  - "../../../acquia/blt/scripts/drupal-vm/post-provision.php"
