forked from BenoitCattie/puppet-php5-fpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (34 loc) · 1.39 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# php5-fpm module #
Author : Benoit CATTIE <[email protected]>, Lars Fronius <[email protected]>
Version : 0.2
Licence : GPLv3
Fully puppet-lint compliant module for configuring php5-fpm via puppet.
## Intro ##
This module installs php5-fpm from packages.
php5-fpm is not yet packaged in standart distrib repositories.
Tested yet with dotdeb packages (xml conf).
Overwrites default conf with one than only include /etc/php5/fpm/pool.d/*.conf.
Configuration is made by 'php5-fpm::config' definition.
See below for details.
## Class: php5-fpm ##
This class manage php5-fpm installation and configuration.
Config file 'php-fpm.conf' is very minimal : only include /etc/php5/fpm/pool.d/*.conf
Use php5-fpm::config for configuring php5-fpm
Templates:
- php-fpm.conf.erb
## Define : php5-fpm::config ##
Define a php-fpm config snippet. Places all config snippets into
/etc/php5/fpm/pool.d, where they will be automatically loaded
Parameters :
* ensure: typically set to "present" or "absent". Defaults to "present"
* content: set the content of the config snipppet. Defaults to 'template("php5-fpm/pool.d/$name.conf.erb")'
* order: specifies the load order for this config snippet. Defaults to "500"
Sample Usage:
php5-fpm::config{ "global":
ensure => present,
order => "000",
}
php5-fpm::config{ "www-example-pool":
ensure => present,
content => template("php5-fpm/www-pool.conf.erb"),
}