I would like to know if it is possible to 'capture' output in a state so I
can use it later in event data.
For example I got this state;
~~
update-packages:
pkg.uptodate:
- refresh: True
event-completed:
event.send:
- name: 'jwz/custom/maintenance/status'
- data:
status: 'completed'
- require:
- pkg: update-packages
~~
If I could capture the output from 'update-packages' I could use this in
the event.send state to report changed packages. I don't think this is
possible, but perhaps some jinja guru meditation(tm) can be applied.
Running cmd.run "yum update" etc. is an option but I like to keep it native
salt.
Any feedback welcome!
cDR
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.