Initial commit of meta, tasks, templates, and vars.

This commit is contained in:
Jeff Geerling 2014-02-28 20:39:35 -06:00
parent e64fd9ac81
commit bf3f28ce77
5 changed files with 1842 additions and 0 deletions

4
meta/main.yml Normal file
View File

@ -0,0 +1,4 @@
---
dependencies:
# TODO: Figure out a better way to make this dependency not required.
- { role: apache }

13
tasks/main.yml Normal file
View File

@ -0,0 +1,13 @@
---
# PHP.
- name: Ensure PHP packages are installed.
yum: name={{ item }} state=installed enablerepo={{ php_enablerepo }}
with_items: php_packages
notify: restart apache
- name: Place PHP configuration files in place.
template: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=644
with_items:
- { src: php.ini.j2, dest: /etc/php.ini }
- { src: apc.ini.j2, dest: /etc/php.d/php.ini }
notify: restart apache

4
templates/apc.ini.j2 Normal file
View File

@ -0,0 +1,4 @@
apc.shm_size={{ php_apc_shm_size }}
apc.enable_cli=0
apc.rfc1867=1
apc.cache_by_default={{ php_apc_cache_by_default }}

1797
templates/php.ini.j2 Normal file

File diff suppressed because it is too large Load Diff

24
vars/main.yml Normal file
View File

@ -0,0 +1,24 @@
---
# Pass in a comma-separated list of repos to use (e.g. "remi,epel").
php_enablerepo: ""
php_memory_limit: "256M"
php_max_execution_time: "60"
php_upload_max_filesize: "64M"
php_apc_cache_by_default: "1"
php_apc_shm_size: "96M"
php_date_timezone: "America/Chicago"
php_packages:
- ImageMagick
- php
- php-cli
- php-common
- php-devel
- php-gd
- php-imap
- php-ldap
- php-mbstring
- php-pdo
- php-pear
- php-pecl-apc
- php-xml
- php-xmlrpc