2026-02-07 13:34:25 +01:00
|
|
|
## confdroid_php::params.pp
|
|
|
|
|
# Module name: confdroid_php
|
|
|
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
2025-04-24 18:30:22 +02:00
|
|
|
# @summary Class contains all class parameters for this module
|
2025-05-15 14:53:20 +02:00
|
|
|
# @param [String] reqpackages which packages to install
|
|
|
|
|
# @param [String] pkg_ensure which version of packages to install
|
2025-04-24 18:30:22 +02:00
|
|
|
##############################################################################
|
2026-02-07 13:34:25 +01:00
|
|
|
class confdroid_php::params (
|
2025-04-24 18:30:22 +02:00
|
|
|
|
2025-04-24 19:00:20 +02:00
|
|
|
String $reqpackages = 'php',
|
2026-02-07 13:34:25 +01:00
|
|
|
String $pkg_ensure = 'present',
|
2025-04-24 18:41:04 +02:00
|
|
|
|
2025-04-24 18:30:22 +02:00
|
|
|
) {
|
|
|
|
|
# Facts
|
|
|
|
|
|
2025-04-24 19:00:20 +02:00
|
|
|
$fqdn = $facts['networking']['fqdn']
|
|
|
|
|
$domain = $facts['networking']['domain']
|
|
|
|
|
$os_name = $facts['os']['name']
|
|
|
|
|
$os_release = $facts['os']['release']['major']
|
|
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
|
$php_lib_dir = '/var/lib/php'
|
|
|
|
|
$php_userlib_dir = '/usr/lib64/php'
|
|
|
|
|
$php_phpd_dir = '/etc/php.d'
|
|
|
|
|
$php_zts_dir = '/etc/php-zts.d'
|
|
|
|
|
|
2025-04-24 18:54:44 +02:00
|
|
|
# Files
|
|
|
|
|
$php_ini_file = '/etc/php.ini'
|
2026-02-07 13:34:25 +01:00
|
|
|
$php_ini_erb = 'confdroid_php/php.ini.erb'
|
2025-04-24 18:54:44 +02:00
|
|
|
|
2025-04-24 18:30:22 +02:00
|
|
|
# includes must be last
|
2026-02-07 13:34:25 +01:00
|
|
|
include confdroid_php::main::config
|
2025-04-24 18:30:22 +02:00
|
|
|
}
|