These are chat archives for allegro/ralph

21st
Nov 2018
Fabian Krack
@onibox
Nov 21 2018 15:05
The documentation for the 'Workflow system' is not there yet. Where can i find/try out the workflow that RalphNG supports in the demo installation?
✪ vi4m Marcin Kliks
@vi4m
Nov 21 2018 20:31
@cosmo222 not sure about that. maybe @romcheg knows something about it?
@tretos53 show me the output of dpkg -l "ralph-"
@tretos53 I suppose you've seen the dc visualization ? it shows green/red bars
@onibox we have some documentation regarding workflows
@onibox the thing is, we call them "transitions" ;-)
✪ vi4m Marcin Kliks
@vi4m
Nov 21 2018 20:37
@onibox but, well, the documentation really covers more advanced scenario, when you want to customize workflow in code
the simple scenario is really trivial and can be covered in one screen: http://ralph-demo.allegro.tech/transitions/transitionmodel/
transition is the action which is run on specific model, such as data center asset
Zrzut ekranu 2018-11-21 o 21.37.59.png
you can run "change rack" action
Zrzut ekranu 2018-11-21 o 21.39.19.png
where is it defined? here - in transition models bound to "data center asset"
Zrzut ekranu 2018-11-21 o 21.40.07.png
you see custom action defined by the user, which can be only run, when data center asset in the specific status
new, free, or to-deploy
when it's run successfully - Ralph changes status to "in use"
✪ vi4m Marcin Kliks
@vi4m
Nov 21 2018 20:42
Zrzut ekranu 2018-11-21 o 21.42.34.png
during this process, particular additional action can be chosen, from simple one-field forms such as "change hostname" which requires entering particular field (hostname)
Zrzut ekranu 2018-11-21 o 21.46.55.png
you can plug any action such as: generating pdf, deploying, etc
✪ vi4m Marcin Kliks
@vi4m
Nov 21 2018 20:48
and you can also plug your own code, and this documentation we have, covers exactly that