Files
herolib/manual/core/play.md
2024-12-25 08:40:56 +01:00

753 B

Play

Important section about how to create base objects which hold context an config mgmt.

Context

A context is sort of sandbox in which we execute our scripts it groups the following

  • filesystem key value stor
  • logs
  • multiple sessions
  • gittools: gitstructure
  • redis client

more info see context

Session

  • each time we execute a playbook using heroscript we do it in a session
  • a session can have a name as given by the developer or will be autocreated based on time

more info see session

Config Mgmt

is done per instance of an object which inherits from BaseConfig.

KVS

there is a KVS attached to each context/session