deb-murano/doc/source/draft/appdev-guide/examples.rst
OlgaGusarenko d24f4a5786 [Murano docs] Examples section review
1. Improves the table appearance.
2. Fixes several mistakes

Change-Id: I57f8a6aa7e9dca3f76ef0eb234d86918ff0aeee6
2015-05-29 19:34:46 +03:00

2.7 KiB
Raw Blame History

Examples

Application name Description

Zabbix Agent is a simple application. It doesnt deploy a VM by itself, but is installed on a specific VM that may contain any other applications. This VM is tracked by Zabbix and by its configuration.

So Murano performs the Zabbix agent configuration based on the user input. The user chooses the way of instance tracking - HTTP or ICMP that may perform some modifications in the application package.

It is worth noting that application scripts are written in Python, not in Bash as usual. This application does not work without Zabbix server application since its a required property, determined in the application definition.

Zabbix Server application interacts with Zabbix Agent by calling its setUpAgent method and providing information about itself: IP and hostname of VM on which the server is installed.

Server installs MySQL database and requests database name, password and some other parameters from the user.

This is a good example on how difficult logic may be simplified with the inheritance that is supported by MuranoPL. Definition of this app is simple, but the opportunity it provides is fantastic.

Crate is a distributed database, in the Murano Application catalog it looks like a regular application. It may be deployed on Google Kubernetes or regular Docker server. The user picks the desired option while filling in the form since these options are set in the UI definition. The form field has a list of possible options:

...
type: 
- io.murano.apps.docker.kubernetes.KubernetesPod
- io.murano.apps.docker.DockerStandaloneHost

Information about the application itself (docker image and port that is needed to be opened) is contained in the getContainer method. All other actions for the application configuration are located at the DockerStandaloneHost definition and its dependencies. Note that this application doesnt have a filename:Resources folder at all since the installation is made by Docker itself.