File tree Expand file tree Collapse file tree 8 files changed +28
-15
lines changed Expand file tree Collapse file tree 8 files changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,24 @@ Installed components
31
31
32
32
* [ Nginx] ( http://nginx.org )
33
33
* [ MySQL] ( http://dev.mysql.com/downloads/mysql/ )
34
- * [ PHP 5.6 ] ( http://www.php.net/ )
34
+ * [ PHP 7.0 ] ( http://www.php.net/ )
35
35
* [ php-fpm] ( http://php-fpm.org )
36
36
* [ git] ( http://git-scm.com/ )
37
37
* [ Composer] ( https://getcomposer.org/ )
38
38
* [ Symfony2 Standard Edition] ( https://github.com/symfony/symfony-standard )
39
39
* [ Laravel] ( https://laravel.com/ )
40
40
* [ PHPUnit] ( https://phpunit.de/ )
41
41
42
+ If you don't like/need some of the components just remove them from the roles section in playbook/vagrant.yml.
43
+
42
44
Changes
43
45
-------
44
46
45
47
### unreleased
48
+
49
+ * Introduce php_version variable, set PHP default version to 7.0 [ #33 ] ( https://github.com/dirkaholic/vagrant-php-dev-box/pull/33 )
50
+ * Upgrade Ubuntu box to 16.04 (latest LTS version) [ #33 ] ( https://github.com/dirkaholic/vagrant-php-dev-box/pull/33 )
51
+
46
52
### v1.4.0
47
53
48
54
* Transfer ansible playbooks to roles [ #31 ] ( https://github.com/dirkaholic/vagrant-php-dev-box/pull/31 )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Vagrant.require_version ">= 1.7.0"
3
3
4
4
Vagrant . configure ( 2 ) do |config |
5
5
6
- config . vm . box = "ubuntu/trusty64 "
6
+ config . vm . box = "bento/ubuntu-16.04 "
7
7
8
8
# Disable the new default behavior introduced in Vagrant 1.7, to
9
9
# ensure that all Vagrant machines will use the same SSH key pair.
Original file line number Diff line number Diff line change 37
37
- name : Copy across new php-fpm pool config for laravel
38
38
template :
39
39
src=php-fpm.conf.j2
40
- dest=/etc/php/5.6 /fpm/pool.d/laravel.conf
40
+ dest=/etc/php/{{ php_version }} /fpm/pool.d/laravel.conf
41
41
notify :
42
42
- restart php-fpm
43
43
Original file line number Diff line number Diff line change 1
1
- name : restart php-fpm
2
- service : name=php5.6 -fpm state=restarted
2
+ service : name=php{{ php_version }} -fpm state=restarted
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install php-fpm
3
- apt : name=php5.6 -fpm state=present
3
+ apt : name=php{{ php_version }} -fpm state=present
Original file line number Diff line number Diff line change 1
1
---
2
+ php_version : 7.0
2
3
composer_process_timeout : 900
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Add apt repository for PHP 5.6
2
+ - name : Add apt key for PHP ppa
3
+ apt_key :
4
+ keyserver : keyserver.ubuntu.com
5
+ id : 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
6
+ state : present
7
+
8
+ - name : Add apt repository for PHP
3
9
apt_repository : repo='ppa:ondrej/php/ubuntu'
4
10
5
11
- name : Install python-software-properties
6
12
apt : name=python-software-properties state=present
7
13
8
- - name : Install php 5.6
9
- apt : name=php5.6 state=present
14
+ - name : Install PHP
15
+ apt : name=php{{ php_version }} state=present
10
16
11
17
- name : Install required php packages
12
18
apt : name={{ item }} state=present
13
19
with_items :
14
- - php5.6 -mysql
15
- - php5.6 -intl
16
- - php5.6 -cli
17
- - php5.6 -mcrypt
18
- - php5.6 -mbstring
19
- - php5.6 -dom
20
+ - php{{ php_version }} -mysql
21
+ - php{{ php_version }} -intl
22
+ - php{{ php_version }} -cli
23
+ - php{{ php_version }} -mcrypt
24
+ - php{{ php_version }} -mbstring
25
+ - php{{ php_version }} -dom
20
26
21
27
- name : Enable the MCrypt extension
22
28
shell : phpenmod mcrypt
Original file line number Diff line number Diff line change 27
27
- name : Copy across new php-fpm pool config for symfony
28
28
template :
29
29
src=php-fpm.conf.j2
30
- dest=/etc/php/5.6 /fpm/pool.d/symfony.conf
30
+ dest=/etc/php/{{ php_version }} /fpm/pool.d/symfony.conf
31
31
notify :
32
32
- restart php-fpm
33
33
You can’t perform that action at this time.
0 commit comments