Commit 60d01e0
committed
avoid double execution of resources notified by or which subscribes other resources
Chef executes resources in the order they appear in a recipe. But also
provide a way for:
- resource to be notified by other resources
- resource to subscribes other resources.
The default action for a resource is "run", so it is executed
sequentially as it appears in the recipe. If this resource subscribes
another resource, it is also executed when the subscribed resource change
its state.
Same speech for the resource notified by another resource.1 parent 80369aa commit 60d01e0
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments