Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/roots/trellis
Browse files Browse the repository at this point in the history
  • Loading branch information
pacotole committed May 22, 2024
2 parents dbcb19c + b791d54 commit ac15ba9
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
### 1.22.0: April 24th, 2024
* Fix MariaDB apt-key is deprecated failure [#1515](https://github.com/roots/trellis/pull/1515)
* Default to PHP 8.2, add PHP 8.3 support [#1514](https://github.com/roots/trellis/pull/1514)
* Add PHP JIT and enable it by default [#1505](https://github.com/roots/trellis/pull/1505)
* Update wp_cli_version to 2.9.0 [#1508](https://github.com/roots/trellis/pull/1508)
* Add `cron` to default `apt` packages [#1506](https://github.com/roots/trellis/pull/1506)
* Enable PHP OPCache overwrites for `max_wasted_percentage` & `huge_code_pages` [#1503](https://github.com/roots/trellis/pull/1503)
* Add MariaDB server config for optimizatons [#1497](https://github.com/roots/trellis/pull/1497)
* Add PHP-FPM conf and tuning settings [#1496](https://github.com/roots/trellis/pull/1496)
* CLI config updates [#1486](https://github.com/roots/trellis/pull/1486)
* Update Bitbucket Cloud SSH Host Keys [#1492](https://github.com/roots/trellis/pull/1492)
* Add Libvirt to the Vagrant config file [#1490](https://github.com/roots/trellis/pull/1490)

**Full Changelog**: https://github.com/roots/trellis/compare/v1.21.0...v1.22.0

### 1.21.0: April 5th, 2023
* Add optional PHP 8.2 support [#1485](https://github.com/roots/trellis/pull/1485)
* Default to PHP 8.1 [#1484](https://github.com/roots/trellis/pull/1484)
Expand Down
2 changes: 1 addition & 1 deletion group_vars/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apt_package_state: present
apt_security_package_state: latest
apt_dev_package_state: latest
composer_keep_updated: true
php_version: "8.1"
php_version: "8.2"
ntp_timezone: Etc/UTC
ntp_manage_config: true
www_root: /srv/www
Expand Down
2 changes: 0 additions & 2 deletions roles/mariadb/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
mariadb_version: 10.6
mariadb_keyserver: "hkp://keyserver.ubuntu.com:80"
mariadb_keyserver_id: "0xF1656F24C74CD1D8"
mariadb_ppa: "deb https://mirror.rackspace.com/mariadb/repo/{{ mariadb_version }}/ubuntu {{ ansible_distribution_release }} main"

mariadb_client_package: mariadb-client
Expand Down
23 changes: 11 additions & 12 deletions roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
---
- block:
- name: Add MariaDB APT key
apt_key:
keyserver: "{{ mariadb_keyserver }}"
id: "{{ mariadb_keyserver_id }}"
- name: Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.apt_key:
url: "https://mariadb.org/mariadb_release_signing_key.asc"
state: present

- name: Add MariaDB PPA
apt_repository:
repo: "{{ mariadb_ppa }}"
update_cache: yes
- name: Add MariaDB PPA
apt_repository:
repo: "{{ mariadb_ppa }}"
update_cache: yes

- name: Install MySQL client
apt:
ansible.builtin.apt:
name: "{{ mariadb_client_package }}"
state: "{{ mariadb_client_package_state | default(apt_package_state) }}"
cache_valid_time: "{{ apt_cache_valid_time }}"
update_cache: true

- block:
- name: Install MySQL server
apt:
ansible.builtin.apt:
name: "{{ mariadb_server_package }}"
state: "{{ mariadb_server_package_state | default(apt_package_state) }}"
cache_valid_time: "{{ apt_cache_valid_time }}"
Expand Down
18 changes: 18 additions & 0 deletions roles/php/vars/8.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
php_extensions_default:
php8.3-bcmath: "{{ apt_package_state }}"
php8.3-cli: "{{ apt_package_state }}"
php8.3-curl: "{{ apt_package_state }}"
php8.3-dev: "{{ apt_package_state }}"
php8.3-fpm: "{{ apt_package_state }}"
php8.3-imagick: "{{ apt_package_state }}"
php8.3-intl: "{{ apt_package_state }}"
php8.3-mbstring: "{{ apt_package_state }}"
php8.3-mysql: "{{ apt_package_state }}"
php8.3-xml: "{{ apt_package_state }}"
php8.3-xmlrpc: "{{ apt_package_state }}"
php8.3-zip: "{{ apt_package_state }}"

php_memcached_packages:
php8.3-memcached: "{{ apt_package_state }}"

php_xdebug_package: php8.3-xdebug

0 comments on commit ac15ba9

Please sign in to comment.