Add more config options

This commit is contained in:
phil 2024-01-04 08:44:43 +01:00
parent 313538ba5a
commit bad798a2ee
3 changed files with 6 additions and 1 deletions

View file

@ -7,7 +7,9 @@ This role installs phpMyAdmin.
| Name | Note | Default |
|--|--|--|
| `phpmyadmin_user` | System user to create | `pma`
| `phpmyadmin_user` | System user to create | `pma` |
| `phpmyadmin_blowfish_secret` | 32 bytes long plain-text password for cookie encryption | |
| `phpmyadmin_tmp` | Tmp directory | `/tmp` |
| `phpmyadmin_hosts` | Array with hosts to connect to | *optional* |
| `phpmyadmin_hosts.name` | Hostname of database host | * optional* |
| `phpmyadmin_host.address` | IP address of database host | *optional* |

View file

@ -1,2 +1,3 @@
---
phpmyadmin_user: pma
phpmyadmin_tmp: /tmp

View file

@ -2,6 +2,8 @@
<?php
$cfg['ForceSSL'] = true;
$cfg['blowfish_secret'] = '{{ phpmyadmin_blowfish_secret }}';
$cfg['TempDir'] = '{{ phpmyadmin_tmp }}';
{% if phpmyadmin_hosts is defined %}
$i = 0;