Created
September 27, 2012 16:13
-
-
Save randysecrist/3794876 to your computer and use it in GitHub Desktop.
chef ordering
This file contains 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
# 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