Add rake tasks, provisioning, and templates
This commit is contained in:
parent
20bee0fac4
commit
cdf390f082
7 changed files with 193 additions and 11 deletions
|
@ -155,7 +155,7 @@ installed_extras:
|
|||
- nodejs
|
||||
- pimpmylog
|
||||
# - redis
|
||||
# - ruby
|
||||
- ruby
|
||||
# - selenium
|
||||
# - solr
|
||||
# - tideways
|
||||
|
@ -206,13 +206,6 @@ php_opcache_max_accelerated_files: 4096
|
|||
php_max_input_vars: "4000"
|
||||
php_packages_extra: ['php7.1-zip']
|
||||
|
||||
# Run specified scripts before or after VM is provisioned. Use {{ playbook_dir }}
|
||||
# to reference the provisioning/ folder in Drupal VM or {{ config_dir }} to
|
||||
# reference the directory where your `config.yml` is.
|
||||
pre_provision_scripts: []
|
||||
post_provision_scripts: []
|
||||
# - "{{ playbook_dir }}/../examples/scripts/configure-solr.sh"
|
||||
|
||||
# MySQL Configuration.
|
||||
mysql_root_password: root
|
||||
mysql_slow_query_log_enabled: true
|
||||
|
@ -229,7 +222,7 @@ npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"
|
|||
|
||||
# Ruby Configuration (if enabled above).
|
||||
ruby_install_gems_user: "{{ drupalvm_user }}"
|
||||
ruby_install_gems: []
|
||||
ruby_install_gems: ['rake']
|
||||
|
||||
# Varnish Configuration (if enabled above).
|
||||
varnish_listen_port: "81"
|
||||
|
@ -272,5 +265,5 @@ hostname_configure: true
|
|||
hostname_fqdn: "{{ vagrant_hostname }}"
|
||||
ssh_home: "{{ drupal_core_path }}"
|
||||
|
||||
post_provision_tasks_dir: ../../provisioning/box/post-tasks/*.yml
|
||||
pre_provision_tasks_dir: ../../provisioning/box/pre-tasks/*.yml
|
||||
post_provision_tasks_dir: ../../provisioning/box/post-tasks/*.yml
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
dest: "{{ drupal_core_path }}/sites/default/settings.local.php"
|
||||
|
||||
- name: Check if site is already installed.
|
||||
command: "{{ drupal_composer_install_dir }}/vendor/bin/drush --root={{ drupal_core_path}}/ status bootstrap"
|
||||
command: "{{ drupal_composer_install_dir }}/vendor/bin/drush --root={{ drupal_core_path }}/ status bootstrap"
|
||||
args:
|
||||
chdir: "{{ drupal_core_path }}"
|
||||
register: drupal_site_installed
|
||||
|
@ -59,6 +59,16 @@
|
|||
changed_when: false
|
||||
become: no
|
||||
|
||||
- name: create drush.yml
|
||||
template:
|
||||
src: "drush.yml.j2"
|
||||
dest: "{{ drupal_composer_install_dir }}/drush/drush.yml"
|
||||
|
||||
- name: create local.site.yml
|
||||
template:
|
||||
src: "local.site.yml.j2"
|
||||
dest: "{{ drupal_composer_install_dir }}/drush/sites/local.site.yml"
|
||||
|
||||
- name: Install Drupal with drush.
|
||||
command: >
|
||||
{{ drupal_composer_install_dir }}/vendor/bin/drush site-install -y
|
||||
|
|
3
provisioning/box/post-tasks/templates/drush.yml.j2
Normal file
3
provisioning/box/post-tasks/templates/drush.yml.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
options:
|
||||
uri: "http://{{ vagrant_hostname }}"
|
||||
root: "{{ drupal_core_path }}"
|
7
provisioning/box/post-tasks/templates/local.site.yml.j2
Normal file
7
provisioning/box/post-tasks/templates/local.site.yml.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
dev:
|
||||
root: "{{ drupal_core_path }}"
|
||||
uri: "http://{{ vagrant_hostname }}"
|
||||
|
||||
local:
|
||||
root: "{{ drupal_core_path }}"
|
||||
uri: "http://{{ vagrant_hostname }}"
|
Loading…
Add table
Add a link
Reference in a new issue