ripienaar / puppet-module-data

Hiera backend that stores data in a module
74 stars 43 forks source link

Fix/config not deserialized #24

Closed elijahsgh closed 9 years ago

elijahsgh commented 9 years ago

safe_yaml is used by default during load of all data from YAML files within puppet.

When puppet module_data loads hiera.yaml from the module it will safe-load the :hierarchy symbol as string ":hierarchy". This prevents anything other than common.yaml from being imported into the module's configuration.

This patch loads only files matching hiera.yaml with de-serialization enabled. Deserializing all symbols could cause undesired operation including increases in memory usage.

Puppet version 4.1.0

ripienaar commented 9 years ago

nice, didnt think there was any hope of it working in 4.x :)