Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/creating-manifest/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ type: update
name: Event Subscription Example

onInstall:
createFile [cp]: /tmp/result.txt
createFile [cp]: /tmp/result.txt

onAfterScaleOut [cp]:
cmd [cp]: echo 'New Compute node has been added' >> /tmp/result.txt
cmd [cp]: echo 'New Compute node has been added' >> /tmp/result.txt

onAfterRestartNode [apache2]:
cmd [cp]: echo 'Compute node with ID - ${events.response.nodeid} has been restarted' >> /tmp/result.txt
cmd [cp]: echo 'Compute node with ID - ${events.response.nodeid} has been restarted' >> /tmp/result.txt

onAfterResetNodePassword [${nodes.cp[0].id}]:
cmd [${nodes.cp[0].id}]: echo 'First compute node has been restarted' >> /tmp/result.txt
cmd [${nodes.cp[0].id}]: echo 'First compute node has been restarted' >> /tmp/result.txt
```
``` json
{
Expand Down