You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
Since Drupal VM is built in a modular fashion, you can swap out the database engine and use [PostgreSQL](https://www.postgresql.org/) instead of MySQL (as long as the version of Drupal you're using supports it!).
2
+
3
+
To switch from MySQL to PostgreSQL, switch the `drupalvm_database` setting in your local `config.yml` to `pgsql`:
4
+
5
+
```yaml
6
+
drupalvm_database: mysql
7
+
```
8
+
9
+
For more PostgreSQL configuration options, see the README included with the [`geerlingguy.postgresql](https://galaxy.ansible.com/geerlingguy/postgresql/) Ansible role.
Installs PHP [PostgreSQL](https://www.postgresql.org/) support on Linux.
6
+
7
+
## Requirements
8
+
9
+
None.
10
+
11
+
## Role Variables
12
+
13
+
Available variables are listed below, along with default values (see `defaults/main.yml`):
14
+
15
+
php_enablerepo: ""
16
+
17
+
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. `remi,epel`). This can allow you to install later versions of PHP packages.
18
+
19
+
php_pgsql_package: php-pgsql # RedHat
20
+
php_pgsql_package: php7.0-pgsql # Debian
21
+
22
+
The PHP PostgreSQL package to install via apt/yum. This should only be overridden if you need to install a unique/special package for PostgreSQL support, as in the case of using software collections on Enterprise Linux.
23
+
24
+
## Dependencies
25
+
26
+
- geerlingguy.php
27
+
28
+
## Example Playbook
29
+
30
+
- hosts: webservers
31
+
roles:
32
+
- geerlingguy.postgresql
33
+
- geerlingguy.php
34
+
- geerlingguy.php-pgsql
35
+
36
+
## License
37
+
38
+
MIT / BSD
39
+
40
+
## Author Information
41
+
42
+
This role was created in 2016 by [Jeff Geerling](http://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).
0 commit comments