From efdbd7cc6578d1720fd2f5c40b41c821fb2d0c6c Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Tue, 22 Mar 2022 16:37:25 +0100 Subject: [PATCH] !fixup manpages --- type/__php_fpm/man.rst | 75 +++++++++++++++++++++++++++++++++++ type/__php_fpm_pool/man.rst | 79 +++++++++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 type/__php_fpm/man.rst create mode 100644 type/__php_fpm_pool/man.rst diff --git a/type/__php_fpm/man.rst b/type/__php_fpm/man.rst new file mode 100644 index 0000000..08b479e --- /dev/null +++ b/type/__php_fpm/man.rst @@ -0,0 +1,75 @@ +cdist-type__php_fpm(7) +====================== + +NAME +---- +cdist-type__php_fpm - Setup and configure PHP-FPM + + +DESCRIPTION +----------- +This type installs and configures PHP-FPM for a given version of PHP. It is +expected to be used in combination with cdist-type__php_fpm_pool, which +configures specific pools. + +Note that currently, this type is only implemented for Alpine Linux. + + +REQUIRED PARAMETERS +------------------- +php-version + The PHP version for which the type is working. Will impact installed + packages, configuration files, &c + + +OPTIONAL PARAMETERS +------------------- +memory-limit + The system-wide memory limit for PHP-FPM. Can be overriden per-pool. + Default is 512M. + +upload-max-filesize + The maximum filesize accepted by PHP-FPM for file uploads. Default is + 2M. + +BOOLEAN PARAMETERS +------------------ +enable-opcache + Enable PHP opcache. + +enable-apcu + Enable PHP APCu. + + +EXAMPLES +-------- + +.. code-block:: sh + + # Dead simple setup + __php_fpm --php-version 8.1 + + # Custom setup + __php_fpm \ + --php-version 8.1 \ + --memory-limit 768M \ + --upload-max-filesize 200M \ + --enable-opcache \ + --enable-apcu + +SEE ALSO +-------- +cdist-type__php_fpm_pool(7) + + +AUTHORS +------- +Joachim Desroches + + +COPYING +------- +Copyright \(C) 2022 Joachim Desroches. You can redistribute it +and/or modify it under the terms of the GNU General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. diff --git a/type/__php_fpm_pool/man.rst b/type/__php_fpm_pool/man.rst new file mode 100644 index 0000000..cd96175 --- /dev/null +++ b/type/__php_fpm_pool/man.rst @@ -0,0 +1,79 @@ +cdist-type__php_fpm_pool(7) +=========================== + +NAME +---- +cdist-type__php_fpm_pool - Setup and configure a PHP-FPM pool + + +DESCRIPTION +----------- + +This type configures a pool named after the `__object_id` for a specified PHP +version. Note that this types expects a same-version cdist-type__php_fpm type +to have been run first: the user is responsible for doing so. + +Note that currently, this type is only implemented for Alpine Linux. + + +REQUIRED PARAMETERS +------------------- +php-version + The PHP version for which the type is working. Will impact installed + packages, configuration files, &c + +pool-user + The local user under which the pool processes should run. + +pool-group + The local group under which the pool processes should run. + +pool-listen-addr + The socket or address to which the pool should bind for listening. + +pool-listen-owner + The owner of the socket if a socket is used. + +OPTIONAL PARAMETERS +------------------- +memory-limit + The pool memory limit for PHP-FPM. Will default to the setting in the + system-wide php.ini file. + +openbasedir + Limit the files that can be accessed by PHP to the specified + directory-tree, including the file itself. + +EXAMPLES +-------- + +.. code-block:: sh + + # Setup PHP-FPM + __php_fpm --php-version 8 + + # Setup the pool + __php_fpm_pool www \ + --php-version 8 \ + --pool-user nextcloud \ + --pool-group www-data \ + --pool-listen-addr "/run/php8/php-fpm.sock" \ + --pool-listen-owner nginx \ + --memory-limit 1G + +SEE ALSO +-------- +cdist-type__php_fpm(7) + + +AUTHORS +------- +Joachim Desroches + + +COPYING +------- +Copyright \(C) 2022 Joachim Desroches. You can redistribute it +and/or modify it under the terms of the GNU General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version.