php5

contributions requested
installs PHP 5.5 on RedHat/CentOS 6 machines

8,205 downloads

7,797 latest version

4.3 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Dec 27th 2015
This version is compatible with:
  • Puppet Enterprise >= 3.0.0 < 2015.4.0
  • Puppet >= 3.0.0 < 5.0.0
  • RedHat
    ,
    CentOS

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'alanpetersen-php5', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add alanpetersen-php5
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install alanpetersen-php5 --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

alanpetersen/php5 — version 0.1.1 Dec 27th 2015

php5

Overview

The purpose of this module is to provide an easy way to install PHP 5.5 on RedHat/CentOS 6 boxes. I originally started working on this module because I am working on a moodle module, and the latest version of moodle requires PHP 5.4 or higher and I was getting tired installing PHP repeatedly on my CentOS 6 systems.

Module Description

To use this module, simply classify your node with the php5 class:

include php5

You probably only want to do this on nodes where the PHP version (see the $::phpversion fact below).

The class provides parameters to override the target directory (where the source will get unpacked and built) and the PHP version to install.

class { 'php5':
    $targetdir     = '/tmp/src',
    $php_version   = '5.5.30,
) 

Custom Facts

  • phplist - returns a hash of all the php installations on the system (in the PATH -- including /usr/local/bin). This can be useful to see what is currently on a system and deciding which PHP instance you want to use.
{
	"/usr/bin/php"       => "5.3.3", 
	"/usr/local/bin/php" => "5.5.30"
}
  • phpversion -- of the versions installed, returns the 'highest' (determined by string comparison)

What php5 affects

  • This module installs a set of *-devel packages and builds and installs PHP. PHP is installed into /usr/local/bin. This location is not currently configurable.

Limitations

This module is only meant to work with RedHat/CentOS 6. If you try to use it with something else, it will fail.