Commit fe709cf2 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

Merge branch 'devel' of gitlab.mn.tu-dresden.de:sdm/package.lang.php.module.mysqli into devel

parents 5a916776 b3221aac
## Description
This role installs, enables and configures the PHP module `<module>`.
This role installs, enables and configures the PHP module `mysqli`.
## Requirements
### Variables
* php_mod_mysqli_allow_local_infile:
* description:
* This option allow accessing, from PHP's perspective, local files with LOAD DATA statements.
* default: 0
* php_mod_mysqli_local_infile_directory:
* description:
* This option allows restricting LOCAL DATA loading to files located in this designated directory.
* default: ""
* php_mod_mysqli_allow_persistent:
* description:
* This option enables the ability to create persistent connections using mysqli_connect().
* default: 1
* php_mod_mysqli_max_persistent:
* description:
* This option specifies the maximum of persistent connections that can be made. Set to 0 for unlimited.
* default: -1
* php_mod_mysqli_max_links:
* description:
* This option specifies the maximum number of MySQL connections per process.
* default: -1
* php_mod_mysqli_default_port:
* description:
* This option specifies the default TCP port number to use when connecting to the database server if no other port is specified.
* default: 3306
* php_mod_mysqli_default_socket:
* description:
* This option specifies the default socket name to use when connecting to a local database server if no other socket name is specified.
* default: undefined
* php_mod_mysqli_default_host:
* description:
* This option specifies the default server host to use when connecting to the database server if no other host is specified.
* default: undefined
* php_mod_mysqli_default_user:
* description:
* This option specifies the default user name to use when connecting to the database server if no other name is specified.
* default: undefined
* php_mod_mysqli_default_pw:
* description:
* This option specifies the default password to use when connecting to the database server if no other password is specified.
* default: undefined
* php_mod_mysqli_reconnect:
* description:
* This option determines whether a connection should be automatically restored if it is lost.
* This setting is ignored by the mysqlnd driver.
* default: 0
* php_mod_mysqli_rollback_on_cached_plink:
* description:
* If this option is enabled, closing a persistent connection will rollback any pending transactions of this connection before it is put back into the persistent connection pool.
* choices: [false, true]
* default: false
## Processes
None
......
---
php_module_config_file: "module.ini.j2"
php_module_priority: <module prio>
php_module_config_file: "mysqli.ini.j2"
php_module_priority: 20
php_mod_mysqli_allow_local_infile: 0
php_mod_mysqli_local_infile_directory: ""
php_mod_mysqli_allow_persistent: 1
php_mod_mysqli_max_persistent: -1
php_mod_mysqli_max_links: -1
php_mod_mysqli_default_port: 3306
php_mod_mysqli_reconnect: 0
php_mod_mysqli_rollback_on_cached_plink: false
......@@ -2,9 +2,9 @@
galaxy_info:
author: Martin Pietsch <martin.pietsch@tu-dresden.de>
description: This role installs, enables and configures
the PHP module `<module>`.
the PHP module `mysqli`.
company: Technische Universität Dresden
role_name: package_lang_php_module_<module>
role_name: package_lang_php_module_mysqli
namespace: sdm
license: BSD-3-Clause
min_ansible_version: 2.10
......
......@@ -4,11 +4,11 @@
vars:
system_config_directory: "/etc"
tasks:
- name: "Install PHP intl"
- name: "Install PHP mysqli"
sdm.oor.call_role:
name: "package.lang.php.module.intl"
name: "package.lang.php.module.mysqli"
- name: "Configure PHP intl"
- name: "Configure PHP mysqli"
sdm.oor.call_role:
name: "package.lang.php.module.intl"
name: "package.lang.php.module.mysqli"
tasks: "configure"
......@@ -7,7 +7,7 @@ driver:
name: podman
platforms:
- name: package_lang_php_module_intl_debian
- name: package_lang_php_module_mysqli_debian
registry:
url: gitlab.mn.tu-dresden.de:8000
image: sdmgroup/containers/debian10:latest
......
extension=intl
[intl]
intl.default_locale = {{ php_mod_intl_default_locale }}
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
intl.error_level = {{ php_mod_intl_error_level }}
intl.use_exceptions = {{ php_mod_intl_use_exceptions | string }}
extension=mysqli
[mysqli]
mysqli.allow_local_infile = {{ php_mod_mysqli_allow_local_infile }}
mysqli.local_infile_directory = {{ php_mod_mysqli_local_infile_directory }}
mysqli.allow_persistent = {{ php_mod_mysqli_allow_persistent }}
mysqli.max_persistent = {{ php_mod_mysqli_max_persistent }}
mysqli.max_links = {{ php_mod_mysqli_max_links }}
mysqli.default_port = {{ php_mod_mysqli_default_port }}
{% if php_mod_mysqli_default_socket is defined %}
mysqli.default_socket = {{ php_mod_mysqli_default_socket }}
{% endif %}
{% if php_mod_mysqli_default_host is defined %}
mysqli.default_host = {{ php_mod_mysqli_default_host }}
{% endif %}
{% if php_mod_mysqli_default_host is defined %}
mysqli.default_user = {{ php_mod_mysqli_default_user }}
{% endif %}
{% if php_mod_mysqli_default_pw is defined %}
mysqli.default_pw = {{ php_mod_mysqli_default_pw }}
{% endif %}
mysqli.reconnect = {{ php_mod_mysqli_reconnect }}
mysqli.rollback_on_cached_plink = {{ php_mod_mysqli_rollback_on_cached_plink | string }}
---
php_module_name: "<module name>"
php_module_name: "mysqli"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment