Fix BlockStorageAttachment bug when translate compute node
[parser.git] / tosca2heat / heat-translator / translator / tests / data / test_tosca_artifact.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: TOSCA template to test artifact usage
4
5 node_types:
6   tosca.nodes.CustomWebServer:
7     derived_from: tosca.nodes.WebServer
8     artifacts:
9       web_content:
10         file: http://www.mycompany.org/content.tgz
11         type: tosca.artifacts.File
12     interfaces:
13       Standard:
14         create:
15           inputs:
16             content: { get_artifact: [ SELF, web_content ] }
17           implementation: install.sh
18
19 topology_template:
20   node_templates:
21
22     customwebserver:
23       type: tosca.nodes.CustomWebServer
24       requirements:
25         - host: server
26
27     server:
28       type: tosca.nodes.Compute
29       capabilities:
30         host:
31          properties:
32            num_cpus: 1
33            mem_size: 1 GB
34         os:
35           properties:
36             type: Linux
37             distribution: Ubuntu
38             version: 12.04
39             architecture: x86_64
40