The Zabbix installation manual recommends some settings in 
/etc/php5/apache2/php.ini:

post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = UTC

Other PHP applications have different recommendations. Here are a few 
recommended values for post_max_size, for example:

Drupal: 10M
PHPMyAdmin: 20M
Wordpress: 8M

Ansible roles for Drupal, PHPMyAdmin, Wordpress, and Zabbix could assure 
their settings with tasks using the lineinfile module or a Jinja2 template 
for php.ini.

What happens if two or more PHP applications are installed on the same 
host? Each role configures its preferred value and the last role to execute 
wins.

In the post_max_size example, I think that the final configured value 
should be the maximum from the relevant roles for that host. For other 
parameters, the preferred value might be the minimum, the average, or some 
other function of the available values. In some cases, such as timezone, 
conflicting values should cause an assertion to fail so an administrator 
can resolve the problem.

Has anyone else encountered this problem? Have you found an approach for 
tracking a maximum (or minimum, etc.) value across multiple roles and using 
the maximum in a task?

--
Joel Shprentz






-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d46117c5-6eee-4361-946f-2d7f28abd02a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to