-
Notifications
You must be signed in to change notification settings - Fork 0
/
escenario1.yaml
57 lines (46 loc) · 1.16 KB
/
escenario1.yaml
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
heat_template_version: newton
description: 1 equipo
parameters:
flavor:
type: string
default: "m1.mini"
image:
type: string
default: "bf688ff8-549e-4de6-8e96-13b10e85f1fe"
red_externa:
type: string
description: red para conectarse a internet
constraints:
- custom_constraint: neutron.network
key_name:
type: string
description: SSH key pair
constraints:
- custom_constraint: nova.keypair
resources:
r1_network_ext:
type: OS::Neutron::Port
properties:
network: {get_param: red_externa}
device_owner: "compute:nova"
port_security_enabled: False
security_groups: []
r1:
type: OS::Nova::Server
properties:
name: "maquina"
flavor: { get_param: flavor }
image: { get_param: image }
key_name: { get_param: key_name }
networks:
- { port: { get_resource: r1_network_ext } }
user_data: |
#!/bin/bash -v
apt update
apt install -y apache2 curl dnsutils
r1_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network: ext-net
port_id: { get_resource: r1_network_ext }
outputs: