blob: 64fc0085647a79a99540277623dc13742aba7445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with 2 servers bound to the 1 network
parameters:
network_name:
type: string
description: Network name
default: my_private_net
network_cidr:
type: string
description: CIDR for the network
default: 10.0.0.0/24
network_start_ip:
type: string
description: Start IP for the allocation pool
default: 10.0.0.100
network_end_ip:
type: string
description: End IP for the allocation pool
default: 10.0.0.150
resources:
my_server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
networks:
- port: { get_resource: my_port }
user_data_format: SOFTWARE_CONFIG
software_config_transport: POLL_SERVER_HEAT
my_server2:
type: OS::Nova::Server
properties:
flavor: m1.small
image: cirros-0.3.2-x86_64-uec
networks:
- port: { get_resource: my_port2 }
user_data_format: SOFTWARE_CONFIG
software_config_transport: POLL_SERVER_HEAT
my_network:
type: OS::Neutron::Net
properties:
name:
get_param: network_name
my_network_subnet:
type: OS::Neutron::Subnet
properties:
allocation_pools:
- end:
get_param: network_end_ip
start:
get_param: network_start_ip
cidr:
get_param: network_cidr
ip_version: 4
network: { get_resource: my_network }
my_port:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network }
my_port2:
type: OS::Neutron::Port
properties:
network: { get_resource: my_network }
outputs: {}
|