- From: Curtis Stewart <
>
- To: "
" <
>
- Subject: [chef] Converting node attributes to yaml
- Date: Tue, 4 Feb 2014 23:35:59 +0000
- Accept-language: en-US
I’m trying to allow a settings.yml file to be generated from node attributes.
I assumed the following would work, but I’m left with various
“!ruby/hash:Chef::Node::ImmutableMash” lines in my yaml file.
YAML::dump(node[‘applications']['settings'].to_hash)
settings: !ruby/hash:Chef::Node::ImmutableMash
foo: !ruby/array:Chef::Node::ImmutableArray
- settingone
bar: !ruby/array:Chef::Node::ImmutableArray
- settingone
I’d like to be able to allow for a very flexible configuration, however,
maybe this is just a bad practice and I should use a template with a smaller
number of configurations?
Thanks,
Curtis
- [chef] Converting node attributes to yaml, Curtis Stewart, 02/04/2014
Archive powered by MHonArc 2.6.16.