Remove obsolete system class definitions
* add link to the folder, where murano system classes are stored * update telnet definition Change-Id: Icb2ddefb430bf4456fd5113d54cfb25f9533318e
This commit is contained in:
parent
3855c9e605
commit
fa807b2815
|
@ -93,6 +93,10 @@ Example *telnet.yaml*
|
||||||
|
|
||||||
Name: Telnet
|
Name: Telnet
|
||||||
|
|
||||||
|
# Inheritance from io.murano.Application class
|
||||||
|
# (located at Murano Core library) indicates,
|
||||||
|
# that this is a complete application
|
||||||
|
# and that 'deploy' method has to be defined.
|
||||||
Extends: std:Application
|
Extends: std:Application
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
@ -103,23 +107,29 @@ Example *telnet.yaml*
|
||||||
Contract: $.class(res:Instance).notNull()
|
Contract: $.class(res:Instance).notNull()
|
||||||
|
|
||||||
|
|
||||||
Workflow:
|
Methods:
|
||||||
deploy:
|
deploy:
|
||||||
Body:
|
Body:
|
||||||
|
# Determine the environment to which the application belongs.
|
||||||
|
# This message will be stored in deployment logs and available in UI
|
||||||
- $this.find(std:Environment).reporter.report($this, 'Creating VM for Telnet instace.')
|
- $this.find(std:Environment).reporter.report($this, 'Creating VM for Telnet instace.')
|
||||||
|
# Deploy VM
|
||||||
- $.instance.deploy()
|
- $.instance.deploy()
|
||||||
- $this.find(std:Environment).reporter.report($this, 'Instance is created. Setup Telnet service.')
|
- $this.find(std:Environment).reporter.report($this, 'Instance is created. Setup Telnet service.')
|
||||||
|
# Create instance of murano resource class. Agent will use it to find
|
||||||
|
# corresponding execution plan by the file name
|
||||||
- $resources: new('io.murano.system.Resources')
|
- $resources: new('io.murano.system.Resources')
|
||||||
# Deploy Telnet
|
# Deploy Telnet
|
||||||
- $template: $resources.yaml('DeployTelnet.template')
|
- $template: $resources.yaml('DeployTelnet.template')
|
||||||
|
# Send prepared execution plan to Murano agent
|
||||||
- $.instance.agent.call($template, $resources)
|
- $.instance.agent.call($template, $resources)
|
||||||
- $this.find(std:Environment).reporter.report($this, 'Telnet service setup is done.')
|
- $this.find(std:Environment).reporter.report($this, 'Telnet service setup is done.')
|
||||||
|
|
||||||
|
|
||||||
Note, that
|
Note, that
|
||||||
|
|
||||||
* *io.murano.system.Resources* is a system class, defined in MuranoPL. More information about MuranoPL system classes is available here: :ref:`class_definitions`.
|
* *io.murano.system.Resources* is a system class, defined in MuranoPL. MuranoPL system classes are described `here <http://git.openstack.org/cgit/openstack/murano/tree/meta/io.murano/Classes>`_.
|
||||||
* *io.murano.resources.Instance* is a class, defined in the core Murano library, which is available here. :ref:`This library <core_library>` contains Murano Agent templates and virtual machine initialization scripts.
|
* *io.murano.resources.Instance* is a class, defined in the core Murano library, contains Murano Agent templates and virtual machine initialization scripts.
|
||||||
* $this.find(std:Environment).reporter.report($this, 'Creating VM for Telnet instance.') - this is the way of sending reports to Murano dashboard during deployment
|
* $this.find(std:Environment).reporter.report($this, 'Creating VM for Telnet instance.') - this is the way of sending reports to Murano dashboard during deployment
|
||||||
|
|
||||||
Step 3. Prepare dynamic UI form definition
|
Step 3. Prepare dynamic UI form definition
|
||||||
|
|
|
@ -25,5 +25,3 @@ Content
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|
||||||
murano_pl
|
murano_pl
|
||||||
system_classes
|
|
||||||
core_classes
|
|
Loading…
Reference in New Issue