-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpdserevr.yml
91 lines (79 loc) · 2.31 KB
/
httpdserevr.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
heat_template_version: 2013-05-23
description: >
HOT template to create a new neutron network plus a router to the public
network, and for deploying two servers into the new network. The template also
assigns floating IP addresses to each server so they are routable from the
public network.
parameters:
text:
type: string
description: Testo del Sito
p_subnet:
type: string
description: Subnet per il Sito
resources:
net:
type: OS::Neutron::Net
properties:
name: "BySito01"
subnet:
type: OS::Neutron::Subnet
properties:
network_id: { get_resource: net }
cidr: "192.168.127.0/24"
dns_nameservers: [ "8.8.8.8", "8.8.4.4" ]
router:
type: OS::Neutron::Router
properties:
external_gateway_info:
network: "public"
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: subnet }
server_web:
type: OS::Nova::Server
properties:
name: ItsServerWeb01
image: "LINUX_Centos_7"
flavor: "elm.medium"
user_data_format: RAW
user_data: { get_resource: config_web }
networks:
- port: { get_resource: server_web_port }
server_web_port:
type: OS::Neutron::Port
properties:
network_id: { get_resource: net }
security_groups:
- { get_resource: server_security_group }
fixed_ips:
- subnet_id: { get_resource: subnet }
server_web_floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network: "public"
port_id: { get_resource: server_web_port }
config_web:
type: OS::Heat::CloudConfig
properties:
cloud_config:
password: Password01
chpasswd: { expire: False }
runcmd:
- yum -y install httpd
- systemctl enable httpd
- systemctl start httpd
server_security_group:
type: OS::Neutron::SecurityGroup
properties:
description: Test group to demonstrate Neutron security group functionality with Heat.
name: test-security-group
rules: [
{remote_ip_prefix: 0.0.0.0/0,
protocol: tcp,
port_range_min: 80,
port_range_max: 80},
{remote_ip_prefix: 0.0.0.0/0,
protocol: icmp}]