Created
November 27, 2012 17:03
-
-
Save intinig/4155528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 79.125.61.76 ================================================================================ | |
| 79.125.61.76 | |
| 79.125.61.76 Recipe Compile Error in /var/chef/cache/cookbooks/postfix/recipes/client.rb | |
| 79.125.61.76 ================================================================================ | |
| 79.125.61.76 | |
| 79.125.61.76 Net::HTTPServerException | |
| 79.125.61.76 | |
| 79.125.61.76 ------------------------ | |
| 79.125.61.76 | |
| 79.125.61.76 400 "Bad Request" | |
| 79.125.61.76 | |
| 79.125.61.76 Cookbook Trace: | |
| 79.125.61.76 --------------- | |
| 79.125.61.76 /var/chef/cache/cookbooks/postfix/recipes/default.rb:57:in `block in from_file' | |
| 79.125.61.76 | |
| 79.125.61.76 /var/chef/cache/cookbooks/postfix/recipes/default.rb:51:in `each' | |
| 79.125.61.76 /var/chef/cache/cookbooks/postfix/recipes/default.rb:51:in `from_file' | |
| 79.125.61.76 | |
| 79.125.61.76 /var/chef/cache/cookbooks/postfix/recipes/client.rb:42:in `from_file' | |
| 79.125.61.76 | |
| 79.125.61.76 Relevant File Content: | |
| 79.125.61.76 ---------------------- | |
| 79.125.61.76 /var/chef/cache/cookbooks/postfix/recipes/default.rb: | |
| 79.125.61.76 | |
| 79.125.61.76 50: | |
| 79.125.61.76 | |
| 79.125.61.76 51: %w{main master}.each do |cfg| | |
| 79.125.61.76 52: | |
| 79.125.61.76 | |
| 79.125.61.76 53: if Chef::Config[:solo] | |
| 79.125.61.76 54: Chef::Log.warn("This recipe uses search. Chef Solo does not support search.") | |
| 79.125.61.76 | |
| 79.125.61.76 55: else | |
| 79.125.61.76 56: if node['postfix']['mail_relay_query'] | |
| 79.125.61.76 | |
| 79.125.61.76 57>> mail_relay_query = search(:node, mail_relay_query).map do |n| | |
| 79.125.61.76 58: n["cloud"] ? n["cloud"]["public_ipv4"] : n["ipaddress"] | |
| 79.125.61.76 | |
| 79.125.61.76 59: end.join(",") | |
| 79.125.61.76 60: else | |
| 79.125.61.76 | |
| 79.125.61.76 61: mail_relay_networks = node['postfix']['mail_relay_networks'] | |
| 79.125.61.76 62: end | |
| 79.125.61.76 | |
| 79.125.61.76 63: end | |
| 79.125.61.76 64: | |
| 79.125.61.76 | |
| 79.125.61.76 65: template "/etc/postfix/#{cfg}.cf" do | |
| 79.125.61.76 66: source "#{cfg}.cf.erb" | |
| 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment