Update to 2020-12-16 20:00

master
Daniel Berteaud 4 years ago
parent 8a674e5b59
commit 4a07e810b1
  1. 1
      roles/itop/meta/main.yml
  2. 5
      roles/itop/tasks/filebeat.yml
  3. 1
      roles/itop/tasks/install.yml
  4. 2
      roles/itop/tasks/main.yml
  5. 6
      roles/itop/templates/filebeat.yml.j2
  6. 4
      roles/itop/templates/httpd.conf.j2
  7. 2
      roles/itop/templates/perms.sh.j2
  8. 5
      roles/itop/templates/php.conf.j2

@ -2,6 +2,7 @@
allow_duplicates: True
dependencies:
- role: mkdir
- role: httpd_php
- role: mysql_server
when: itop_db_server in [ 'localhost', '127.0.0.1' ]

@ -0,0 +1,5 @@
---
- name: Deploy filebeat configuration
template: src=filebeat.yml.j2 dest=/etc/filebeat/ansible_inputs.d/itop_{{ itop_id }}.yml
tags: itop,log

@ -6,6 +6,7 @@
- tar
- mariadb
- acl
- graphviz
tags: itop
- when: itop_install_mode != 'none'

@ -11,4 +11,4 @@
when: itop_install_mode == 'upgrade'
- include: write_version.yml
- include: cleanup.yml
- include: filebeat.yml

@ -0,0 +1,6 @@
---
- type: log
enabled: True
paths:
- {{ itop_root_dir }}/web/log/setup.log

@ -5,6 +5,10 @@ Alias /{{ itop_alias }} {{ itop_root_dir }}/web/
{% endif %}
RewriteEngine On
# Upgrading DB schema can be very long, so makes sure httpd will wait for a response long enough
<Proxy unix:/run/php-fpm/{{ itop_php_fpm_pool | default('itop_' + itop_id | string) }}.sock|fcgi://localhost>
ProxySet timeout=1800
</Proxy>
<Directory {{ itop_root_dir }}/web/>
AllowOverride All
Options FollowSymLinks

@ -1,8 +1,6 @@
#!/bin/sh
restorecon -R {{ itop_root_dir }}
chown -R {{ itop_php_user }} {{ itop_root_dir }}/data
chmod 700 {{ itop_root_dir }}/data
{% for dir in ['data', 'conf', 'log', 'env-production', 'env-production-build', 'extensions'] %}
setfacl -k -b -R {{ itop_root_dir }}/web/{{ dir }}
chown -R {{ itop_php_user }} {{ itop_root_dir }}/web/{{ dir }}

@ -27,9 +27,10 @@ php_admin_value[upload_tmp_dir] = {{ itop_root_dir }}/tmp
php_admin_value[sys_temp_dir] = {{ itop_root_dir }}/tmp
php_admin_value[post_max_size] = 21M
php_admin_value[upload_max_filesize] = 20M
php_admin_value[disable_functions] = system, show_source, symlink, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd
php_admin_value[disable_functions] = system, show_source, symlink, dl, shell_exec, passthru, phpinfo, escapeshellcmd
php_admin_value[open_basedir] = {{ itop_root_dir }}
php_admin_value[max_execution_time] = 900
; DB schema upgrade can be very long
php_admin_value[max_execution_time] = 1800
php_admin_value[max_input_time] = 120
php_admin_flag[allow_url_include] = off
php_admin_flag[allow_url_fopen] = on

Loading…
Cancel
Save