Skip to content

Instantly share code, notes, and snippets.

@rsim
Created September 16, 2009 11:51
Show Gist options
  • Save rsim/188003 to your computer and use it in GitHub Desktop.
Save rsim/188003 to your computer and use it in GitHub Desktop.
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Sending HTTP Request via GET to /roles/app-dbatasks
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Loading Recipe rails_apps
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Found recipe default in cookbook rails_apps
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: initial node[:apache][:listen_ports]=[]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Loading Recipe passenger_apache2::mod_rails via include_recipe
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: after passenger_apache2::mod_rails node[:apache][:listen_ports]=[]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: after rails_apps recipe node[:apache][:listen_ports]=["8001"]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Converging node hand_alise_lv
[Wed, 16 Sep 2009 14:44:07 +0300] DEBUG: Saving the current state of node hand_alise_lv
[Wed, 16 Sep 2009 14:44:07 +0300] DEBUG: Sending HTTP Request via PUT to /nodes/hand_alise_lv
[Wed, 16 Sep 2009 14:44:08 +0300] INFO: Chef Run complete in 19.789231 seconds
[Wed, 16 Sep 2009 14:44:08 +0300] DEBUG: Exiting
Chef::Log.debug "initial node[:apache][:listen_ports]=#{node[:apache][:listen_ports].inspect}"
include_recipe "passenger_apache2::mod_rails"
Chef::Log.debug "after passenger_apache2::mod_rails node[:apache][:listen_ports]=#{node[:apache][:listen_ports].inspect}"
# ...
conf_http_port = (conf[:http_port] || 80).to_s
node[:apache][:listen_ports] << conf_http_port unless node[:apache][:listen_ports].include?(conf_http_port)
# ...
Chef::Log.debug "after rails_apps recipe node[:apache][:listen_ports]=#{node[:apache][:listen_ports].inspect}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment