blob: 5fa40b76d3ba61ffe992239e6db504c7bfe15ac9 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: >-
TOSCA simple profile with 2 servers bound to the 1 network.
metadata:
template_name: network-3
template_author: TOSCA Simple Profile in YAML
template_version: '1.0'
topology_template:
inputs:
network_name:
type: string
description: Network name
network_cidr:
type: string
default: 10.0.0.0/24
description: CIDR for the network
network_start_ip:
type: string
default: 10.0.0.100
description: Start IP for the allocation pool
network_end_ip:
type: string
default: 10.0.0.150
description: End IP for the allocation pool
node_templates:
my_server:
type: tosca.nodes.Compute
capabilities:
host:
properties:
disk_size: 10 GB
num_cpus: 1
mem_size: 4096 MB
os:
properties:
architecture: x86_64
type: Linux
distribution: CirrOS
version: 0.3.2
my_server2:
type: tosca.nodes.Compute
capabilities:
host:
properties:
disk_size: 10 GB
num_cpus: 1
mem_size: 4096 MB
os:
properties:
architecture: x86_64
type: Linux
distribution: CirrOS
version: 0.3.2
my_network:
type: tosca.nodes.network.Network
properties:
ip_version: 4
cidr: { get_input: network_cidr }
network_name: { get_input: network_name }
start_ip: { get_input: network_start_ip }
end_ip: { get_input: network_end_ip }
my_port:
type: tosca.nodes.network.Port
requirements:
- binding: my_server
- link: my_network
my_port2:
type: tosca.nodes.network.Port
requirements:
- binding: my_server2
- link: my_network