This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-drupal-settings/README.md

33 lines
1 KiB
Markdown
Raw Normal View History

2019-01-24 02:47:04 +00:00
# Ansible Role: Drupal settings
A role for automatically generating `settings.php` files for Drupal 7 and 8 applications.
## Example
2019-01-24 02:47:04 +00:00
```yaml
drupal_settings:
- drupal_root: /var/www/web
sites:
- name: default
filename: settings.php # Optional, defaults to 'settings.php'
settings:
2019-01-28 23:44:53 +00:00
base_url: https://www.example.com # Optional, Drupal 7
2019-01-24 03:06:37 +00:00
hash_salt: '' # Optional
2019-01-24 02:47:04 +00:00
databases:
2019-01-24 02:59:40 +00:00
default: # The database key
default: # The database target
2019-01-24 02:47:04 +00:00
driver: mysql # Optional, defaults to 'mysql'
host: localhost # Optional, defaults to 'localhost'
port: 3306 # Optional
2019-01-24 02:47:04 +00:00
database: mydatabase
username: user
password: secret
config_directories: # Optional, Drupal 8
sync: path/to/config
2019-01-28 23:41:29 +00:00
trusted_hosts: # Optional, Drupal 8
2019-01-24 02:54:37 +00:00
- '^example\.com$'
- '^.+\.example\.com$'
- '^example\.org$'
- '^.+\.example\.org$'
2019-01-24 02:47:04 +00:00
```