intro.adoc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [#entities]
  2. = Entities
  3. An entity is something that exists - a "thing", like a VM, or a Container is an entity. OliveTin allows you to then dynamically generate actions based around these entities.
  4. This is really useful if you want to generate wake on lan or poweroff actions for `server` entities, for example.
  5. A very popular use case that entities were designed for was for `container` entities - in a similar way you could generate `start`, `stop`, and `restart` container actions.
  6. Entities are just loaded from files on disk, OliveTin will also watch these files for updates while OliveTin is running, and update entities.
  7. Entities can have properties defined in those files, and those can be used in your configuration as variables. For example; `container.status`, or `vm.hostname`.
  8. [source,yaml]
  9. ----
  10. entities:
  11. - file: /etc/OliveTin/containers.json
  12. name: container
  13. - file: /etc/OliveTin/servers.yaml
  14. name: server
  15. ----
  16. Entity Actions can only be used on xref:dashboards/intro.adoc[Dashboards].
  17. == What's Next?
  18. Now that you understand entities, here's how to use them effectively:
  19. * xref:entities/yaml.adoc[Create YAML entity files] - Learn the YAML format for entity files
  20. * xref:entities/json.adoc[Create JSON entity files] - Learn the JSON format for entity files
  21. * xref:entities/examples.adoc[View entity examples] - See complete examples of entity configurations
  22. * xref:dashboards/intro.adoc[Use entities in dashboards] - Combine entities with dashboards for dynamic action generation
  23. * xref:solutions/container-control-panel/index.adoc[Container control panel solution] - See a complete example using container entities
  24. * xref:solutions/systemd-control-panel/index.adoc[Systemd control panel solution] - See a complete example using systemd entities