Skip to content

Commit

Permalink
Allowed creation of php-fpm without vhost creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 committed Nov 13, 2023
1 parent f3b041d commit f7b8276
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/php_fpm_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- zabbix web - Allowed the independent configuration of php-fpm without creating vhost.
1 change: 1 addition & 0 deletions docs/ZABBIX_WEB_ROLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The following is an overview of all available configuration defaults for this ro
* `zabbix_url_aliases`: A list with Aliases for the Apache Virtual Host configuration.
* `zabbix_timezone`: Default: `Europe/Amsterdam`. This is the timezone. The Apache Virtual Host needs this parameter.
* `zabbix_web_create_vhost`: Default: `true`. When you don't want to create an Apache Virtual Host configuration, you can set it to False.
* `zabbix_web_create_php_fpm`: Configure php-fpm (Debian hosts only). Default is to use the same value as `zabbix_web_create_vhost`.
* `zabbix_web_env`: (Optional) A Dictionary of PHP Environments settings.
* `zabbix_web_user`: When provided, the user (which should already exist on the host) will be used for ownership for web/php related processes. (Default set to either `apache` (`www-data` for Debian) or `nginx`).
* `zabbix_web_group`: When provided, the group (which should already exist on the host) will be used for ownership for web/php related processes. (Default set to either `apache` (`www-data` for Debian) or `nginx`).
Expand Down
1 change: 1 addition & 0 deletions roles/zabbix_web/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ zabbix_api_server_url: zabbix.example.com
zabbix_web_http_server: apache
zabbix_url_aliases: []
zabbix_web_create_vhost: true
zabbix_web_create_php_fpm: "{{ zabbix_web_create_vhost }}"

zabbix_server_name: "{{ inventory_hostname }}"
zabbix_server_hostname: "{{ inventory_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/zabbix_web/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
mode: 0644
become: true
when:
- zabbix_web_create_vhost
- zabbix_web_create_php_fpm
- ansible_os_family == "Debian"
notify:
- restart php-fpm-version
Expand Down

0 comments on commit f7b8276

Please sign in to comment.