Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Make drush optional
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Jun 6, 2016
1 parent f4c4390 commit 85c381b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ installed_extras:
- adminer
# - blackfire
- drupalconsole
# - drush
- mailhog
# - memcached
# - newrelic
Expand Down Expand Up @@ -202,6 +203,7 @@ ruby_install_gems: []
extra_security_enabled: false

drush_version: "master"
drush_path: "/var/www/drupalvm/vendor/drush/drush/drush"
drush_keep_updated: true
drush_composer_cli_options: "--prefer-dist --no-interaction"

Expand Down
2 changes: 1 addition & 1 deletion provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
- geerlingguy.php-pecl
- geerlingguy.php-mysql
- geerlingguy.composer
- geerlingguy.drush

# Conditionally-installed roles.
- { role: geerlingguy.drupal-console, when: 'drupal_major_version > 7 and "drupalconsole" in installed_extras' }
- { role: geerlingguy.drush, when: '"drush" in installed_extras' }
- { role: geerlingguy.memcached, when: '"memcached" in installed_extras' }
- { role: geerlingguy.php-memcached, when: '"memcached" in installed_extras' }
- { role: geerlingguy.php-xdebug, when: '"xdebug" in installed_extras' }
Expand Down
3 changes: 3 additions & 0 deletions provisioning/templates/drupalvm.aliases.drushrc.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ $aliases['{{ host }}'] = array(
'remote-host' => '{{ host }}',
'remote-user' => '{{ vagrant_user }}',
'ssh-options' => '-o PasswordAuthentication=no -i ' . drush_server_home() . '/.vagrant.d/insecure_private_key',
'path-aliases' => array(
'%drush-script' => '{{ drush_path }}',
),
);

{% endif -%}
Expand Down

0 comments on commit 85c381b

Please sign in to comment.