'{{ values.driver|default('mysql') }}', 'host' => '{{ values.host|default('localhost') }}', 'port' => '{{ values.port|default('3306') }}', 'database' => '{{ values.database }}', 'username' => '{{ values.username }}', 'password' => '{{ values.password }}', ); {% endfor %} {% endfor %} {% if item.1.settings.base_url is defined %} $base_url = '{{ item.1.settings.base_url }}'; {% endif %} {% if item.1.settings.hash_salt is defined %} $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.items() %} $config_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 %} '{{ host }}', {% endfor %} ); {% endif %} {% if item.1.settings.extra_parameters is defined %} {{ item.1.settings.extra_parameters|indent(0) }} {% endif %}