Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #41 from palantirnet/php7
Browse files Browse the repository at this point in the history
PHP 7 support
  • Loading branch information
becw authored Nov 10, 2017
2 parents 0d77715 + 2089bbb commit 440979a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions conf/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ project = '@projectname@'
hostname = "#{project}.local"
extra_hostnames = []

ansible_solr_enabled = @ansible_solr_enabled@
# temporarily disable Solr support
#ansible_solr_enabled = @ansible_solr_enabled@
ansible_solr_enabled = false
ansible_https_enabled = @ansible_https_enabled@
ansible_project_web_root = "@ansible_project_web_root@"
ansible_timezone = "America/Chicago"
Expand All @@ -28,7 +30,7 @@ Vagrant.configure(2) do |config|
config.vm.define "#{project}" do |box|

box.vm.box = "palantir/drupalbox"
box.vm.box_version = ">= 0.2.4, < 1.0.0"
box.vm.box_version = "~> 1.1"

box.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "2048"
Expand Down
16 changes: 8 additions & 8 deletions conf/vagrant/provisioning/roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
regexp='memory_limit'
line='memory_limit = {{ item.value }}'
with_items:
- { file: '/etc/php/5.6/apache2/php.ini', value: "{{ php_ini_memory_limit }}" }
- { file: '/etc/php/5.6/cli/php.ini', value: '-1' }
- { file: '/etc/php/7.0/fpm/php.ini', value: "{{ php_ini_memory_limit }}" }
- { file: '/etc/php/7.0/cli/php.ini', value: '-1' }
tags: PHP

- name: PHP | Enable PHP error display
Expand All @@ -15,10 +15,10 @@
regexp='^{{ item.key }}'
line='{{ item.key }} = {{ item.value }}'
with_items:
- { file: '/etc/php/5.6/apache2/php.ini', key: 'error_reporting', value: "{{ php_ini_error_reporting }}" }
- { file: '/etc/php/5.6/apache2/php.ini', key: 'display_errors', value: "{{ php_ini_display_errors }}" }
- { file: '/etc/php/5.6/cli/php.ini', key: 'error_reporting', value: "{{ php_ini_error_reporting }}" }
- { file: '/etc/php/5.6/cli/php.ini', key: 'display_errors', value: "{{ php_ini_display_errors }}" }
- { file: '/etc/php/7.0/fpm/php.ini', key: 'error_reporting', value: "{{ php_ini_error_reporting }}" }
- { file: '/etc/php/7.0/fpm/php.ini', key: 'display_errors', value: "{{ php_ini_display_errors }}" }
- { file: '/etc/php/7.0/cli/php.ini', key: 'error_reporting', value: "{{ php_ini_error_reporting }}" }
- { file: '/etc/php/7.0/cli/php.ini', key: 'display_errors', value: "{{ php_ini_display_errors }}" }
tags: PHP

- name: PHP | Adjust php.ini upload_max_filesize
Expand All @@ -27,6 +27,6 @@
regexp='^upload_max_filesize'
line='upload_max_filesize = {{ php_ini_upload_max_filesize }}'
with_items:
- /etc/php/5.6/apache2/php.ini
- /etc/php/5.6/cli/php.ini
- /etc/php/7.0/fpm/php.ini
- /etc/php/7.0/cli/php.ini
tags: PHP
4 changes: 2 additions & 2 deletions conf/vagrant/provisioning/roles/solr/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---

- name: Solr | Disable Jetty Service
- name: Solr | Start the Jetty9 service
become: true
service:
name: jetty
name: jetty9
state: started
enabled: yes
when: solr_enabled == True
Expand Down

0 comments on commit 440979a

Please sign in to comment.