php

contributions requested
A puppet module to manage PHP

14,365 downloads

10,172 latest version

0.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

  • 1.4.2 (latest)
  • 1.4.1
  • 1.4.0
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Jul 13th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'leonardothibes-php', '1.4.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add leonardothibes-php
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install leonardothibes-php --version 1.4.2

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

leonardothibes/php — version 1.4.2 Jul 13th 2014

puppet-php

A puppet module to manage PHP.

Sample Usage

Install PHP and use the provided configuration defaults:

node default {
	class {'php':}
}

or

node default {
	include php
}

Install PHP and change default params in php.ini:

node default {
	class {'php':
		display_errors  => 'Off',
		error_reporting => 'E_ALL',
		memory_limit    => '512',
		error_log       => '/var/log/php.log',
		include_path    => ['/path/to/your/library','/usr/share/php'] # "." is not necessary inform
	}
}

Install PHP and some modules:

node default {
	class {'php':
		modules => ['apc','mysql','pgsql']
	}
}

or

node default {
	class {'php':}
	php::module::install{'apc':}
	php::module::install{'mysql':}
	php::module::install{'pgsql':}
}

Purge modules:

node default {
	php::module::purge{'apc':}
	php::module::purge{'xdebug':}
}

or

node default {
	php::module::purge{['apc','xdebug']:}
}

Install PHP and some development tools:

node default {
	class {'php':
		extra => ['code-sniffer','phing','phpdoc','composer','phpunit','s3cmd']
	}
}

Purge development tools:

node default {
	php::extra::purge{'code-sniffer':}
	php::extra::purge{'composer':}
}

or

node default {
	php::extra::purge{['code-sniffer','composer']:}
}

or

node default {
class {'php':}
	php::extra::install {'code-sniffer':}
	php::extra::install {'phing':}
	php::extra::install {'phpdoc':}
	php::extra::install {'phpunit':}
	php::extra::install {'composer':}
	php::extra::install {'s3cmd':}
}

Purge completly PHP:

node default {
	class {'php':
		ensure => absent
	}
}

Contact

Principal developer: Leonardo Thibes => eu@leonardothibes.com

Support

Please log tickets and issues at our Projects site