drupal_php
Install and configure php for use with Drupal (largely appropriate for Wordpress and other CMSes as well).
Version information
released Jun 23rd 2017
Start using this module
Add this module to your Puppetfile:
mod 'zivtech-drupal_php', '5.0.1'
Learn more about managing modules with a PuppetfileDocumentation
zivtech/drupal_php — version 5.0.1 Jun 23rd 2017
Puppet Drupal PHP
The goal of this module is to create a simple and easy to use class for configuring php, specifically with Drupal in mind. It wraps the most complete and popular php module on the forge and adds a ton of convenience settings that can be set from hiera.
This module is thoroughly tested on Ubuntu 16.04 and should be useable right out of the box. It currently supports running php in apache with php-fpm and manages apache as well using puppetlabs-apache. The module has been architected with the intention of adding nginx support, we're just not there yet. PR's are welcome.
Setup
Installation
puppet module install zivtech-drupal_php
Simple setup
include drupal_php
Advanced Usage
class { 'drupal_php':
memory_limit_server => '128M',
max_execution_time_cli => 60,
post_max_size => '8M',
}
More advanced configuration can be accomplished using hierra.
What drupal_php affects
- Installs php, php-fpm, many extensions, and apache
- Modifies some apache configurations (installing modules, optionally changing listen ports)
- Installs a default fpm pool that listens at 127.0.0.1:9001
- An apache vhost can be easily added using the apache php vhost resource provided by the php module.
v5.0.0
- removes apache mod_php from the default installation in hopes that php-fpm will be used instead.
v3.2.1
- Changes conditional to use PHP version rather than Ubuntu version to allow for other Linux distros.
v3.2.0
- Fix issue with installing php-redis. PECL updated the version of php-redis and it no longer supports the php language version that ships with ubuntu 14.04. Since earlier versions of ubuntu do not have apt packages for php-redis, we drop support for php-redis on versions prior to 14.04
v3.1.0
- Adjust handling of apache modules and default vhosts name.
v3.0.2
- Fix an issue in which provisioning might fail if a port number was interpreted as an integer.
v3.0.1
- Fixes an error in which a variable was defined multiple times.
- Adjusts formatting and string usage to be better in line with community standards.
Dependencies
- puppetlabs-stdlib (>= 1.0.0)
- puppetlabs-apache (>= 1.10.0)
- puppet-php (>= 4.0.0)