cloudsoft.io

TOSCA Support in AMP

The OASIS TOSCA (Topology and Orchestration Specification for Cloud Applications) standard enables services and applications to be portable across cloud providers – regardless of their underlying platform or infrastructure – by describing their components, relationships, dependencies, requirements, and capabilities for AMP.

AMP includes optional support for TOSCA blueprints, such that, when this support is enabled, it is possible to provision TOSCA blueprints directly in AMP.

Enabling TOSCA Support in AMP

Note: these instructions apply to AMP 4.x; for AMP 3.x, see the separate section “Enabling TOSCA Support in AMP 3.x”.

Tosca is included in AMP by default, however it is not enabled. To enable Tosca support a configuration update is required in the Karaf system.properties file. Please uncomment the following line and restart AMP:

#brooklyn.experimental.feature.tosca=true    

The Tosca code bundle initializes only when necessary, so you have to do something on AMP to initialize it - simply visiting the home page on a browser is enough.

The initialisation of this bundle can take a short time (one or two minutes), after which TOSCA blueprints may be deployed on AMP. Watch the info log file for a message like:

2016-08-31 14:33:05,805 INFO  302 i.c.t.a.p.Alien4CloudSpringContext [tp1772021048-235] Finished loading Alien4Cloud platform (1m 41s 821ms)

Enabling TOSCA Support in AMP 3.x

To enable Tosca support in AMP 3.x, add the following line to your ~/.brooklyn/brooklyn.properties and restart AMP:

brooklyn.experimental.feature.tosca=true

(or alternatively pass the system property -Dbrooklyn.experimental.feature.tosca=true when starting AMP).

By default, this will use the configuration file at conf/alien4cloud-config.yml. You can supply a custom A4C configuration file by passing a system property such as:

-Dalien4cloud-config.file=/path/to/alien4cloud-config.yml

The initialisation takes a short time (one or two minutes), after which TOSCA blueprints may be deployed on AMP. Watch the info log file for a message like:

2016-08-31 14:33:05,805 INFO  302 i.c.t.a.p.Alien4CloudSpringContext [tp1772021048-235] Finished loading Alien4Cloud platform (1m 41s 821ms)

Deploying TOSCA blueprints on AMP

  • Now that you have enabled TOSCA support in AMP, you can deploy TOSCA blueprints

  • A sample blueprint is provided

  • You can download the .yaml file and quickly deploy it using the CLI:

br deploy /path/to/tosca.yaml

Alternatively, copy the blueprint text and paste it into the YAML Editor in the Blueprint Composer of the UI.