From 35de5eb2539060ea21a4784d07b676ead6db1675 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 17 Jul 2023 16:25:45 +0200 Subject: [PATCH] librenms: make compatiable with Debian 12 --- roles/librenms/tasks/main.yml | 8 ++++---- roles/librenms/templates/vhost.j2 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/librenms/tasks/main.yml b/roles/librenms/tasks/main.yml index af7d23d..5bc0f98 100644 --- a/roles/librenms/tasks/main.yml +++ b/roles/librenms/tasks/main.yml @@ -51,8 +51,8 @@ regexp: ';?date\.timezone' line: 'date.timezone = Europe/Berlin' with_items: - - /etc/php/7.4/cli/php.ini - - /etc/php/7.4/fpm/php.ini + - /etc/php/8.2/cli/php.ini + - /etc/php/8.2/fpm/php.ini - name: Ensure certificates are available command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ librenms_domain }}.key -out /etc/nginx/ssl/{{ librenms_domain }}.crt -days 730 -subj "/CN={{ librenms_domain }}" creates=/etc/nginx/ssl/{{ librenms_domain }}.crt @@ -76,8 +76,8 @@ file: src=/etc/nginx/sites-available/librenms dest=/etc/nginx/sites-enabled/librenms state=link notify: Restart nginx -- name: Start php7.4-fpm - service: name=php7.4-fpm state=started enabled=yes +- name: Start php8.2-fpm + service: name=php8.2-fpm state=started enabled=yes - name: Enable monitoring include_role: name=icinga-monitor tasks_from=http diff --git a/roles/librenms/templates/vhost.j2 b/roles/librenms/templates/vhost.j2 index 83f3d99..76835ff 100644 --- a/roles/librenms/templates/vhost.j2 +++ b/roles/librenms/templates/vhost.j2 @@ -31,7 +31,7 @@ server { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; + fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_intercept_errors on; }