diff --git a/recipes/_common.rb b/recipes/_common.rb index d556f98..781d0de 100644 --- a/recipes/_common.rb +++ b/recipes/_common.rb @@ -87,7 +87,7 @@ unless node['postfix']['sender_canonical_map_entries'].empty? end unless node['postfix']['main'].key?('sender_canonical_maps') - node.set['postfix']['main']['sender_canonical_maps'] = "hash:#{node['postfix']['conf_dir']}/sender_canonical" + node.normal['postfix']['main']['sender_canonical_maps'] = "hash:#{node['postfix']['conf_dir']}/sender_canonical" end end @@ -106,7 +106,7 @@ unless node['postfix']['smtp_generic_map_entries'].empty? end unless node['postfix']['main'].key?('smtp_generic_maps') - node.set['postfix']['main']['smtp_generic_maps'] = "hash:#{node['postfix']['conf_dir']}/smtp_generic" + node.normal['postfix']['main']['smtp_generic_maps'] = "hash:#{node['postfix']['conf_dir']}/smtp_generic" end end diff --git a/recipes/client.rb b/recipes/client.rb index 2f304f1..4858a6f 100644 --- a/recipes/client.rb +++ b/recipes/client.rb @@ -37,6 +37,6 @@ else relayhost = results.map { |n| n['ipaddress'] }.first end -node.set['postfix']['main']['relayhost'] = "[#{relayhost}]" +node.normal['postfix']['main']['relayhost'] = "[#{relayhost}]" include_recipe 'postfix'