Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Fixes #2065: Drop official support for Debian 9, CentOS 7, and Ubuntu…
Browse files Browse the repository at this point in the history
… 16.04.
  • Loading branch information
geerlingguy committed Jul 6, 2020
1 parent ee1ac2d commit a8cb9c8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 53 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ env:
# Defaults - Ubuntu 18.04.
- type: defaults
distro: ubuntu1804
# Defaults - Debian 9.
# Defaults - Debian 10.
- type: debian
distro: debian9
distro: debian10
ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python
# Defaults - CentOS 7.
# Defaults - CentOS 8.
- type: centos
distro: centos7
local_config: tests/centos-7.config.yml
distro: centos8
local_config: tests/centos-8.config.yml
ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python

# PHP 7.3 - Ubuntu 18.04.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Notes:

- **For faster provisioning** (macOS/Linux only): *[Install Ansible](http://docs.ansible.com/intro_installation.html) on your host machine, so Drupal VM can run the provisioning steps locally instead of inside the VM.*
- **For stability**: Because every version of VirtualBox introduces changes to networking, for the best stability, you should install Vagrant's `vbguest` plugin: `vagrant plugin install vagrant-vbguest`.
- **NFS on Linux**: *If NFS is not already installed on your host, you will need to install it to use the default NFS synced folder configuration. See guides for [Debian/Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04), [Arch](https://wiki.archlinux.org/index.php/NFS#Installation), and [RHEL/CentOS](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-centos-6).*
- **NFS on Linux**: *If NFS is not already installed on your host, you will need to install it to use the default NFS synced folder configuration. See [nfs instructions for Linux](http://docs.drupalvm.com/en/latest/getting-started/installation-linux/#mounting-nfs-shared-folders-hangs)*
- **Versions**: *Make sure you're running the latest releases of Vagrant, VirtualBox, and Ansible—as of 2020, Drupal VM recommends: Vagrant 2.2.x, VirtualBox 6.1.x, and Ansible 2.9.x*

### 2 - Build the Virtual Machine
Expand Down
3 changes: 0 additions & 3 deletions default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
# Available `vagrant_box` values include:
# - geerlingguy/drupal-vm (pre-provisioned, based on Ubuntu 18.04)
# - geerlingguy/centos8
# - geerlingguy/centos7
# - geerlingguy/debian10
# - geerlingguy/debian9
# - geerlingguy/ubuntu1804
# - geerlingguy/ubuntu1604
vagrant_box: geerlingguy/drupal-vm

vagrant_user: vagrant
Expand Down
21 changes: 1 addition & 20 deletions docs/configurations/base-os.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,24 @@ Drupal VM's configuration is designed to work with RedHat and Debian-compatible
Currently-supported OSes are:

- Ubuntu 18.04 'Bionic' (default)
- Ubuntu 16.04 'Xenial'
- RedHat Enterprise Linux / CentOS 8
- RedHat Enterprise Linux / CentOS 7
- Debian 10 'Buster'
- Debian 9 'Stretch'

For certain OSes, there are a couple other caveats and tweaks you may need to perform to get things running smoothly—the main features and latest development is only guaranteed to work with the default OS as configured in `default.config.yml`.

Some other OSes should work, but are not regularly tested with Drupal VM, including Debian 8/Jessie (`debian/jessie64`).
Some other OSes may work, but are not regularly tested with Drupal VM, and may require extra work to make everything work, depending on the version of Drupal you're using.

## Ubuntu 18.04 Bionic LTS

Everything should work out of the box with Ubuntu 18.04.

## Ubuntu 16.04 Xenial LTS

Most everything should work out of the box with Ubuntu 16.04. You will need to override one variable in your `config.yml` to use an older version of Python when provisioning:

ansible_python_interpreter: /usr/bin/python

## RedHat Enterprise Linux / CentOS 8

Everything should work out of the box with RHEL 8.

## RedHat Enterprise Linux / CentOS 7

Most everything should work out of the box with CentOS 7. You will need to override one variable in your `config.yml` to use an older version of Python when provisioning:

ansible_python_interpreter: /usr/bin/python

## Debian 10 Buster

Most everything should work out of the box with Debian 10. If you are installing `java` or `solr` in the `installed_extras`, you need to override the `java_packages` in your `config.yml`:

java_packages:
- openjdk-11-jdk

## Debian 9 Stretch

Everything should work out of the box with Debian 9.
4 changes: 2 additions & 2 deletions docs/configurations/databases-mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ mysql_packages:
- python-mysqldb
```

This set of packages works out of the box with Ubuntu 16.04 as well as the default Ubuntu 18.04 installation that comes with Drupal VM.
This set of packages works out of the box with Ubuntu 18.04 installation that comes with Drupal VM.

Alternatively, if you want to use RedHat 7 or CentOS 7 instead of Ubuntu, you can set the following variables to install and configure MariaDB instead of MySQL:
Alternatively, if you want to use RedHat 8 or CentOS 8 instead of Ubuntu, you can set the following variables to install and configure MariaDB instead of MySQL:

```yaml
mysql_packages:
Expand Down
4 changes: 2 additions & 2 deletions docs/configurations/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ If you're using Apache with `mod_php` you should also add `libapache2-mod-php{{

_Note: XHProf does currently not work with PHP 7.1+, make sure you don't have it listed in `installed_extras`._

## RedHat/CentOS 7 or 8
## RedHat/CentOS 8

Remi's RPM repository is included with Drupal VM, and you can make the following changes to use it to install a different version of PHP than 7.4:

1. Make sure you've followed the directions for switching to CentOS 7 in the [use a different base OS](base-os.md) guide.
1. Make sure you've followed the directions for switching to CentOS 8 in the [use a different base OS](base-os.md) guide.
2. Change `php_version` inside `config.yml` to `"7.2"` or `"7.3"`.

## PHP 5.6 EOL
Expand Down
2 changes: 1 addition & 1 deletion docs/other/production.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ After a few minutes, your Drupal-VM-in-the-cloud Droplet should be fully configu

### Go Further

You can use Ubuntu Ubuntu 18.04, Ubuntu 16.04, Debian 9, or CentOS 7 when you build the DigitalOcean Droplet. Just like with Drupal VM running locally, you can customize almost every aspect of the server!
You can use Ubuntu Ubuntu 18.04, Debian 10, or CentOS 8 when you build the DigitalOcean Droplet. Just like with Drupal VM running locally, you can customize almost every aspect of the server!

You may want to customize your configuration even further, to make sure Drupal VM is tuned for your specific Drupal site's needs, or you may want to change things and make the server configuration more flexible, etc. For all that, the book [Ansible for DevOps](http://ansiblefordevops.com/) will give you a great introduction to using Ansible to make Drupal VM and the included Ansible configuration do exactly what you need!
6 changes: 0 additions & 6 deletions docs/other/vagrant-lxc.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ Read more about how to configure the container in [`vagrant-lxc`'s README.md](ht

The following boxes have been tested only minimally, choose which one you want.

# Centos 7
vagrant_box: frensjan/centos-7-64-lxc

# Ubuntu 16.04
vagrant_box: nhinds/xenial64

# Do not interact with the UFW service on Ubuntu.
drupalvm_disable_ufw_firewall: false

Expand Down
14 changes: 1 addition & 13 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,18 @@ tag="${tag:-latest}"
cleanup="${cleanup:-true}"

## Set up vars for Docker setup.
# CentOS 7
if [ $distro = 'centos7' ]; then
init="/usr/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
# CentOS 8
elif [ $distro = 'centos8' ]; then
if [ $distro = 'centos8' ]; then
init="/usr/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
# Ubuntu 18.04
elif [ $distro = 'ubuntu1804' ]; then
init="/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
# Ubuntu 16.04
elif [ $distro = 'ubuntu1604' ]; then
init="/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
# Debian 10
elif [ $distro = 'debian10' ]; then
init="/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
# Debian 9
elif [ $distro = 'debian9' ]; then
init="/lib/systemd/systemd"
opts="--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
fi

# Set OS-specific options.
Expand Down

0 comments on commit a8cb9c8

Please sign in to comment.