Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created October 6, 2012 19:20
Show Gist options
  • Save coderforhire/3845846 to your computer and use it in GitHub Desktop.
Save coderforhire/3845846 to your computer and use it in GitHub Desktop.
client_ip_info = data_bag('remote-pg-ip')
client_ip = data_bag_item('remote-pg-ip',"#{node[:hostname]}")
default[:postgresql][:listen_addresses] = "*"
default[:postgresql][:client_address] = "#{client_ip[:client_ip]}"
Sat, 06 Oct 2012 19:19:12 +0000] INFO: Starting Chef Run for dpq7yoky2sw4tg
[Sat, 06 Oct 2012 19:19:12 +0000] INFO: Running start handlers
[Sat, 06 Oct 2012 19:19:12 +0000] INFO: Start handlers complete.
[Sat, 06 Oct 2012 19:19:13 +0000] INFO: Loading cookbooks [build-essential, firewall, openssl, postgresql, ufw, zabbix]
[Sat, 06 Oct 2012 19:19:13 +0000] INFO: Storing updated cookbooks/postgresql/attributes/default.rb in the cache.
[Sat, 06 Oct 2012 19:19:13 +0000] ERROR: Running exception handlers
[Sat, 06 Oct 2012 19:19:13 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[Sat, 06 Oct 2012 19:19:13 +0000] ERROR: Exception handlers complete
[Sat, 06 Oct 2012 19:19:13 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[Sat, 06 Oct 2012 19:19:13 +0000] FATAL: TypeError: can't convert Symbol into Integer
root@dpq7yoky2sw4tg:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment