Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345850
fpm.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
fpm.pp
View Options
# == Class: php::fpm
#
# Install and configure mod_php for fpm
#
# === Parameters
#
# [*pools*]
# Hash of php::fpm::pool resources that will be created. Defaults
# to a single php::fpm::pool named www with default parameters.
#
# === Authors
#
# Robin Gloster <robin.gloster@mayflower.de>
# Franz Pletz <franz.pletz@mayflower.de>
#
# === Copyright
#
# See LICENSE file
#
class
php
::
fpm
(
$ensure
=
$php::ensure,
$package
=
$php::params::fpm_package,
$inifile
=
$php::params::fpm_inifile,
$settings
=
{},
$pools
=
{
'www'
=>
{}
},
)
inherits
php
::
params
{
if
$caller_module_name
!=
$module_name
{
warning
(
"${name} is not part of the public API of the ${module_name} module and should not be directly included in the manifest."
)
}
validate_string
(
$ensure)
validate_string
(
$package)
validate_absolute_path
(
$inifile)
validate_hash
(
$settings)
validate_hash
(
$pools)
$real_settings
=
deep_merge
(
$settings,
hiera_hash
(
'php::fpm::settings'
,
{}))
anchor
{
'php::fpm::begin'
:
}
->
class
{
'php::fpm::package'
:
ensure
=>
$ensure,
package
=>
$package,
}
->
class
{
'php::fpm::config'
:
inifile
=>
$inifile,
settings
=>
$real_settings,
}
->
class
{
'php::fpm::service'
:
}
->
anchor
{
'php::fpm::end'
:
}
$real_pools
=
hiera_hash
(
'php::fpm::pools'
,
$pools)
create_resources
(
php
::
fpm
::
pool
,
$real_pools)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 3:33 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3302233
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment