Commit Graph

35 Commits

Author SHA1 Message Date
Eric Morino 2dfd0c0706 Add squid logrotate 2021-10-11 11:03:34 +02:00
Brice Waegeneire 616ead41d5 lxc-php: Add php 8.0 support 2021-10-05 14:38:40 +02:00
Brice Waegeneire 45b7ce3486 lxc-php: Use Debian bullseye package for php74 2021-09-14 14:42:31 +02:00
Jérémy Lecour 51d4ec1bb2 php: remove php-gettext for 7.4 2021-07-02 21:10:04 +02:00
Jérémy Lecour 2f68ae5339 Preliminary support for Bullseye 2021-07-02 20:58:09 +02:00
Jérémy Lecour 0fe0244116 Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
Jérémy Lecour 454d4c6d30 explicit permissions for APT GPG keys
continuous-integration/drone/push Build is passing Details
2021-05-26 13:47:34 +02:00
Jérémy Lecour 7dc6f0b849 remove trailing whitespaces 2021-05-13 15:23:39 +02:00
Jérémy Lecour 2ed77c60f0 Improve Ansible syntax
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Jérémy Lecour 3dde4ee6d3 Rename Sury GPG key
continuous-integration/drone/push Build is passing Details
2021-05-06 13:44:22 +02:00
Jérémy Lecour 5138065059 Use 'loop' syntax instead of 'with_items' 2021-05-04 14:19:18 +02:00
Gregory Colpart f260fedbae fix GPG key install for APT
continuous-integration/drone/push Build is passing Details
2021-04-26 22:36:03 +02:00
Ludovic Poujol 32f2a29161 lxc-php: No need of apt-key for php7.4
continuous-integration/drone/push Build is passing Details
2021-03-31 11:51:26 +02:00
Ludovic Poujol f2ebe2d878 lxc-php: Add php 7.4 support
continuous-integration/drone/push Build is passing Details
2021-03-31 10:57:29 +02:00
Mathieu Trossevin 2e29dc2440 lxc-php: Do not bind the mysql socket by default
continuous-integration/drone/pr Build is failing Details
The lxc-php role can be run on a server without mysql. Attempting to
bindmount the mysql socket in such a case cause the lxc container to
fail to start.

This commit add a variable, lxc_php_create_mysql_link defaulting to
false telling ansible if it should bindmount the MySQL socket to the
container.
2021-01-11 15:20:25 +01:00
Mathieu Trossevin d7aed91043
packweb-multiphp: Change default configuration for compatibility
continuous-integration/drone/pr Build is failing Details
/var/run is now /run (and it is what is used in the .service file)

Have a default directory configured as bind target so things works by default
2020-10-19 17:33:58 +02:00
Mathieu Trossevin d33b4baef1
Make container restart an handler 2020-10-19 14:16:53 +02:00
Mathieu Trossevin 5e13f8da4e lxc-php: Make mysql socket binding work on fresh install
/var/run/mysqld only exist after mysql is installed, as such the role
lxc-php need to run after the role mysql.

Also only cause a restart of the containers when their configuration has
been changed.

For now socket binding might only work for mysql and not mysql-oracle
(it's default socket seems to be /tmp/mysql.sock).
2020-06-17 16:06:54 +02:00
Mathieu Trossevin 49b20f9b12 lxc-php: Have mysqld.sock inside of a directory
Bind mount don't seems to work on a file so the default socket is now
always named mysqld.sock and the configurable variable is
php_conf_mysql_socket_dir that define the directory the socket will be
in.
2020-06-17 16:06:54 +02:00
Mathieu Trossevin 1d9ab0f1f3 Allows using localhost to connect to MySQL in lxc
Add 'php_conf_mysql_default_socket' variable to lxc-php role that
configure both the lxc containers and PHP so that a local MySQL database
may be used through localhost.

The PHP containers will automount /var/run/mysqld/mysqld.sock (the
default path to the mysql socket) to the path defined by the variable
'php_conf_mysql_default_socket' which will be the path used by php to
contact MySQL both with mysqli and PDO_MYSQL.
2020-06-17 16:06:53 +02:00
Ludovic Poujol ebffccae59 lxc-php: Do --no-install-recommends for ssmtp/opensmtpd
continuous-integration/drone/push Build is passing Details
2020-06-05 11:01:22 +02:00
Ludovic Poujol 186f3d90b9 lxc-php: Install opensmtpd as intended 2020-06-05 10:57:49 +02:00
Ludovic Poujol 90704dc712 lxc-php: Don't disable putenv() by default in PHP settings 2020-06-04 11:51:25 +02:00
Ludovic Poujol ead0b7fd88 lxc-php: Install php-sqlite by default
continuous-integration/drone/push Build is passing Details
2020-06-04 11:42:17 +02:00
Ludovic Poujol bd201e8791 (change) lxc-php: refactor tasks for better maintainability (again)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2020-04-08 17:58:42 +02:00
Ludovic Poujol 135a089341 (change) lxc-php: Use OpenSMTPD for Stretch/Buster containers, and ssmtp for Jessie containers
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2020-04-01 17:23:39 +02:00
Ludovic Poujol 8bc4ff4ada lxc-php & webapps/evoadmin-web: Commit missing fixes 2020-04-01 17:17:00 +02:00
Victor LABORIE 47b263e411 lxc-php: fix php56-fpm handler name 2020-04-01 17:17:00 +02:00
Ludovic Poujol e6f2bbb331 lxc-php: An almost complete rewrite ** BREAKING **
This is a breaking change as lxc-php should now be called for *each* php 
containers we want, with the correct lxc_php_version variable.

Current valid values are : 
- php56
- php70
- php73

Other changes includes : 
- LXC Containers are created by calling lxc as a dependency of the role.
- Relying on lxc_container module to do commands into the container 
(instead of the command module)
- PHP 7.3 container is now a Debian Buster container
- All containers will have opensmtpd to relay emails to postfix on the 
host system.
2020-04-01 17:17:00 +02:00
Victor LABORIE 6f5e13f8b8 Add evolix prefix to include_role 2019-11-29 14:00:25 +01:00
Jérémy Lecour 12cebfa71c lxc-php: refactor tasks for better maintainability 2019-10-21 15:26:03 +02:00
Jérémy Lecour beb39988e7 git ignore .swp files
continuous-integration/drone/push Build is passing Details
2019-10-11 21:27:01 +02:00
Ludovic Poujol e13543bf07 lxc-php: Don't remove the default pool - That's making PHP-FPM sad :(
continuous-integration/drone/push Build is passing Details
2019-06-26 11:10:23 +02:00
Tristan PILAT b6d53bfae9 Add lxc-php README file
continuous-integration/drone/push Build encountered an error Details
2019-06-18 18:19:45 +02:00
Tristan PILAT 317aac735f Add lxc-php role - Install 3 containers with all required PHP packages 2019-06-17 12:17:46 +02:00