Configure PHP, Node.js and Ruby

Configure PHP

The default version is the latest Ubuntu-managed version, 8.1.

To override or lock the version, update the server’s Pillar file:

php:
  version: '8.1'

Configure Node.js

The default version is the latest LTS version, 18.

To override or lock the version, update the server’s Pillar file:

nodejs:
  version: 16

Configure Ruby

Ruby Version Manager (RVM) is used instead of apt, to install any version of Ruby.

In the server’s Pillar file, add, for example:

rvm:
  default_version: 3.1.2