50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
file:
|
|
/opt/bitnami/php/lib/php.ini:
|
|
exists: true
|
|
filetype: symlink
|
|
linked-to: ../etc/php.ini
|
|
# Checks custom config
|
|
/opt/bitnami/php/etc/php.ini:
|
|
exists: true
|
|
filetype: file
|
|
contains:
|
|
- upload_max_filesize = 40M
|
|
- opcache.revalidate_freq = 60
|
|
/opt/bitnami/php/etc/common.conf:
|
|
exists: true
|
|
filetype: file
|
|
contains:
|
|
- user=daemon
|
|
/opt/bitnami/php/etc/php-fpm.conf:
|
|
exists: true
|
|
filetype: file
|
|
contains:
|
|
- error_log = /opt/bitnami/php/logs/php-fpm.log
|
|
/opt/bitnami/php/etc/php-fpm.d/www.conf:
|
|
exists: true
|
|
filetype: file
|
|
contains:
|
|
- listen = 9000
|
|
- include=/opt/bitnami/php/etc/environment.conf
|
|
- include=/opt/bitnami/php/etc/common.conf
|
|
command:
|
|
check-used-config:
|
|
exec: php --ini
|
|
exit-status: 0
|
|
stdout:
|
|
- /opt/bitnami/php/lib/php.ini
|
|
- /opt/bitnami/php/etc/conf.d
|
|
check-config-syntax:
|
|
exec: php -l /opt/bitnami/php/etc/php-fpm.conf
|
|
exit-status: 0
|
|
check-enabled-modules:
|
|
exec: php -i
|
|
exit-status: 0
|
|
stdout:
|
|
{{ range $module := .Vars.modules.enabled }}
|
|
- /{{ $module }}.*enabled/
|
|
{{ end }}
|
|
{{ range $module := .Vars.modules.disabled }}
|
|
- disable-{{ $module }}
|
|
{{ end }}
|