Skip to content

Commit

Permalink
Merge pull request #1896 from chef/robb/yaml-dump-v-to-yaml
Browse files Browse the repository at this point in the history
[omnibus] use YAML.dump to serialize simple hashes to disk
  • Loading branch information
robbkidd authored Oct 22, 2020
2 parents d1379a1 + c9ff8d5 commit dcfa5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnibus/cookbooks/omnibus-supermarket/recipes/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end

file "#{node['supermarket']['var_directory']}/etc/database.yml" do
content({
content(YAML.dump({
'production' => {
'adapter' => 'postgresql',
'database' => node['supermarket']['database']['name'],
Expand All @@ -46,7 +46,7 @@
'port' => node['supermarket']['database']['port'],
'pool' => node['supermarket']['database']['pool'],
},
}.to_yaml)
}))
owner node['supermarket']['user']
group node['supermarket']['group']
mode '0600'
Expand Down

0 comments on commit dcfa5a8

Please sign in to comment.