Add ability to configure config directories

Fixes #2
This commit is contained in:
Oliver Davies 2019-02-05 20:49:26 +00:00
parent 2b15cc6ff2
commit 036a675581
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,8 @@ drupal_settings:
database: mydatabase
username: user
password: secret
config_directories: # Optional, Drupal 8
sync: path/to/config
trusted_hosts: # Optional, Drupal 8
- '^example\.com$'
- '^.+\.example\.com$'

View file

@ -23,6 +23,12 @@ $base_url = '{{ item.1.settings.base_url }}';
$settings['hash_salt'] = '{{ item.1.settings.hash_salt }}';
{% endif %}
{% if item.1.settings.config_directories is defined %}
{% for name, value in item.1.settings.config_directories.iteritems() %}
$cconfig_directories['{{ name }}'] = '{{ value }}';
{% endfor %}
{% endif %}
{% if item.1.settings.trusted_hosts is defined %}
$settings['trusted_host_patterns'] = array(
{% for host in item.1.settings.trusted_hosts %}