Skip to content

Instantly share code, notes, and snippets.

@randysecrist
Created September 27, 2012 16:13
Show Gist options
  • Save randysecrist/3794876 to your computer and use it in GitHub Desktop.
Save randysecrist/3794876 to your computer and use it in GitHub Desktop.
chef ordering
# somewhere above; like in a template definition
notifies :restart, resources(:service => "redis-server")
# later on in the same recipe
service "redis-server" do
supports :start => true, :stop => true, :restart => true, :"force-reload" => true
action [ :enable, :start ]
end
we get an error that says something about the 'redis-server' service not yet defined (as it is referenced in the template).
However, if we define the service above the template; then the service tries to start w/o being configured.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment