This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from thom8/upload_progress
Added beetbox-upload-progress role and made a dependancy of drupal
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
provisioning/ansible/roles/beetbox-upload-progress/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
workspace: /tmp | ||
|
||
php_uploadprogress_module_path: /usr/lib/php5/modules | ||
php_uploadprogress_config_filename: 20-uploadprogress.ini |
47 changes: 47 additions & 0 deletions
47
provisioning/ansible/roles/beetbox-upload-progress/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
- name: Download and untar uploadprogress. | ||
unarchive: | ||
src: "https://github.com/php/pecl-php-uploadprogress/archive/master.tar.gz" | ||
dest: "{{ workspace }}" | ||
copy: no | ||
|
||
- name: Build uploadprogress. | ||
shell: > | ||
{{ item }} | ||
chdir={{ workspace }}/pecl-php-uploadprogress-master | ||
creates={{ workspace }}/pecl-php-uploadprogress-master/modules/uploadprogress.so | ||
with_items: | ||
- phpize | ||
- ./configure | ||
- make | ||
notify: restart webserver | ||
|
||
- name: Ensure uploadprogress module path exists. | ||
file: | ||
path: "{{ php_uploadprogress_module_path }}" | ||
state: directory | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
|
||
- debug: msg="{{ workspace }}/pecl-php-uploadprogress-master/modules/uploadprogress.so" | ||
|
||
- name: Move uploadprogress module into place. | ||
copy: | ||
src: "{{ workspace }}/pecl-php-uploadprogress-master/modules/uploadprogress.so" | ||
dest: "{{ php_uploadprogress_module_path }}/uploadprogress.so" | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
notify: restart webserver | ||
|
||
- name: Add php extension config for uploadprogress. | ||
template: | ||
src: uploadprogress.ini.j2 | ||
dest: "{{ item }}/{{ php_uploadprogress_config_filename }}" | ||
owner: root | ||
group: root | ||
force: yes | ||
mode: 0644 | ||
with_items: "{{ php_extension_conf_paths }}" | ||
notify: restart webserver |
2 changes: 2 additions & 0 deletions
2
provisioning/ansible/roles/beetbox-upload-progress/templates/uploadprogress.ini.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; activate and configurate for php uploadprogress module | ||
extension={{ php_uploadprogress_module_path }}/uploadprogress.so |