-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_from_slides.yaml
More file actions
66 lines (57 loc) · 1.54 KB
/
example_from_slides.yaml
File metadata and controls
66 lines (57 loc) · 1.54 KB
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
heat_template_version: 2018-03-02
description: |
Everything from scratch (same as the slides example), except the key-pair, since it's annoying to get the keys.
Note: all values are hard coded, just like the slides.
resources:
security_group:
type: OS::Neutron::SecurityGroup
properties:
name: ssh
rules:
- protocol: tcp
port_range_min: 22
port_range_max: 22
network:
type: OS::Neutron::Net
properties:
name: mynet
subnet:
type: OS::Neutron::Subnet
properties:
name: mysn
network_id: { get_resource: network }
cidr: 192.168.0.0/24
gateway_ip: 192.168.0.1
router:
type: OS::Neutron::Router
properties:
name: myrouter
external_gateway_info:
network: public
router_if1:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: subnet }
server_port:
type: OS::Neutron::Port
properties:
network_id: { get_resource: network }
fixed_ips:
- subnet_id: { get_resource: subnet }
security_groups: [ { get_resource: security_group } ]
server1_floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: public
port_id: { get_resource: server_port }
server:
type: OS::Nova::Server
properties:
name: myserver
key_name: mykey
image: Ubuntu server 18.04
flavor: c1-r05-d20
networks:
- port: { get_resource: server_port }
availability_zone: Education