heat-translator/translator/toscalib/tests/data/tosca_single_server.yaml
jiangyaoguo f151ccc4f3 Implement tosca.capabilities.Container
1. Move num_cpus,disk_size,mem_size of tosca.node.Compute to
tosca.capabilities.Container.
2. Change all template files involves these properties.
3. Fix some unittests which become failed because of properties change.

Co-Authored-By: Sahdev Zala <spzala@us.ibm.com>

Blueprint tosca-container-capabilities

Change-Id: I107ee3906765fb4e2b1497a78433b1095eb7b792
2015-05-05 05:52:35 -07:00

35 lines
815 B
YAML

tosca_definitions_version: tosca_simple_yaml_1_0_0
description: >
TOSCA simple profile for Compute.
topology_template:
inputs:
cpus:
type: integer
description: Number of CPUs for the server.
constraints:
- valid_values: [ 1, 2, 4, 8 ]
node_templates:
server:
type: tosca.nodes.Compute
capabilities:
host:
properties:
# compute properties (flavor)
disk_size: 10
num_cpus: { get_input: cpus }
mem_size: 4096
os:
properties:
architecture: x86_64
type: Linux
distribution: Fedora
version: 18
outputs:
server_address:
description: IP address of server instance.
value: { get_attribute: [server, private_address] }