Plugin create_drupal_settings_file_resources_hash
In: /vagrant/modules/undine/lib/puppet/parser/functions/create_drupal_settings_file_resources_hash.rb

Function: create_drupal_settings_file_resources_hash

A helper function used by Undine to format a given set of databases, files and settings hashes in undine::drupal_site to be compatible with Puppet‘s create_resources() function. Most notably, it declares the databases based on the configuration passed through the original databases array, and sets the variables for public, private and temporary files directories to be consistent with the paths provided in the files array.

Parameters

databases
The full databases hash provided to undine::drupal_site.
files
The full files hash provided to undine::drupal_site.
settings
The full settings hash provided to undine::drupal_site.

Returns

Returns a hash representing the drupal_settings_file resource to be managed.

Type

function

[Validate]