This repository has been archived on 2025-01-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ansible-role-drupal-settings/README.md
Fernando A Castro 782da3d103
Update README.md
This commit includes a fix for the isolevel key. It was changed to 'isolevel: SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED' to use a more standard syntax that closely follows SQL conventions.
2024-07-24 12:32:26 +02:00

33 lines
1.1 KiB
Markdown

# Ansible Role: Drupal settings
A role for automatically generating `settings.php` files for Drupal 7 and 8 applications.
## Example
```yaml
drupal_settings:
- drupal_root: /var/www/web
sites:
- name: default
filename: settings.php # Optional, defaults to 'settings.php'
settings:
base_url: https://www.example.com # Optional, Drupal 7
hash_salt: '' # Optional
databases:
default: # The database key
default: # The database target
driver: mysql # Optional, defaults to 'mysql'
host: localhost # Optional, defaults to 'localhost'
port: 3306 # Optional
database: mydatabase
username: user
password: secret
isolevel: 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED'
config_directories: # Optional, Drupal 8
sync: path/to/config
trusted_hosts: # Optional, Drupal 8
- '^example\.com$'
- '^.+\.example\.com$'
- '^example\.org$'
- '^.+\.example\.org$'
```