-
Notifications
You must be signed in to change notification settings - Fork 9
HHVM
HHVM 3.11.1 is currently supported on Centos 7 of WunderTools but is still in separate branch. While the Ansible role is working, the install is not done with .rpm's as it should be. Instead we have taken a snapshot of the source and binaries right after compilation and we are using this to do 'make install' inside the role.
Clone the Centos 7 branch and cd to the project:
git clone https://github.com/wunderkraut/WunderTools.git --branch centos7 wundertools-hhvm
cd wundertools-hhvm
Change WunderMachina branch from centos7 to hhvm-3.11.1-ansible-role on line 5 of conf/project.yml. So the file should like this after editing:
project:
name: ansibleref
ansible:
remote: [email protected]:wunderkraut/wundermachina.git
branch: hhvm-3.11.1-ansible-role
revision:
buildsh:
branch: develop
revision:
Configure roles as HHVM is not enabled by default and it's not been tested with all of them. So open conf/vagrant.yml, disable varnish, memcached, letsencrypt, sslterminator and enable hhvm (I haven't really tested varnish or memcached, but at the moment of writing this, letsencrypt and sslterminator failed). Roles sections should look like this now:
roles:
- { role: base, tags: [ 'base' ] }
- { role: php-fpm, tags: [ 'php-fpm' ] }
- { role: nginx, tags: [ 'nginx' ] }
# - { role: varnish, tags: [ 'varnish' ] }
# - { role: memcached, tags: [ 'memcached' ] }
- { role: drush, tags: [ 'drush' ] }
- { role: dbserver, tags: [ 'dbserver' ] }
- { role: drupal-db, tags: [ 'drupal-db' ] }
# - { role: letsencrypt, tags: [ 'letsencrypt' ] }
# - { role: sslterminator, tags: [ 'sslterminator' ] }
# Optional HHVM role.
- { role: hhvm, tags: [ 'hhvm' ] }
Also you'd want to edit the "apps:" section to change web root to /vagrant/drupal/current. After editing the apps section, vagrant.yml should look something like this:
# Apps I want to run on this server
apps:
- server_name: wundertools-hhvm.dev
http_port: 80
docroot: /vagrant/drupal/current
If you have multiple WunderTools installed, then you need to change the box 'name' variable from conf/vagrant_local.yml line 1. Otherwise you'll get error from Vagrant: VirtualBox machine with the name 'ansibleref' already exists.
Start vagrant:
vagrant up