blob: 1bc84f5626f0e4bfebd9c74999372cb76c03ca05 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
heat_template_version: 2013-05-23
parameters:
flavor:
type: string
default: m1.small
image:
type: string
default: ubuntu-server
key_name:
type: string
public_net_id:
type: string
default: public
username:
type: string
default: storperf
resources:
storperf_manager:
type: "OS::Nova::Server"
properties:
name: storperf-manager
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
networks:
- port: { get_resource: storperf_manager_port }
user_data: { get_resource: storperf_manager_config }
user_data_format: RAW
storperf_manager_config:
type: "OS::Heat::CloudConfig"
properties:
cloud_config:
users:
- name: { get_param: username }
groups: users
shell: /bin/bash
sudo: "ALL=(ALL) NOPASSWD:ALL"
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEbnDiqZ8RjQJJzJPf074J41XlYED+zYBzaUZ5UkkUquXzymyUmoWaFBXJP+XPu4Ns44U/S8614+JxGk96tjUdJlIjL0Ag8HP6KLtTNCabucKcEASpgJIVWqJvE3E9upZLIEiTGsF8I8S67T2qq1J1uvtxyeZmyjm7NMamjyFXE53dhR2EHqSutyKK1CK74NkRY9wr3qWUIt35kLdKSVSfrr4gOOicDALbIRu77skHIvrjt+wK1VWphBdMg6ytuq5mIE6pjWAU3Gwl4aTxOU0z43ARzCLq8HVf8s/dKjYMj8plNqaIfceMbaEUqpNHv/xbvtGNG7N0aB/a4pkUQL07
- default
package_update: true
package_upgrade: true
packages:
- fio
- python
- rsync
- graphite-carbon
- graphite-web
- apache2
- libapache2-mod-wsgi
- curl
storperf_manager_port:
type: "OS::Neutron::Port"
properties:
network_id: { get_resource: storperf_agent_net }
security_groups:
- { get_resource: storperf_security_group }
storperf_manager_ip:
type: "OS::Neutron::FloatingIP"
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: storperf_manager_port }
storperf_agent_net:
type: "OS::Neutron::Net"
properties:
name: storperf-agent-network
storperf_agent_subnet:
type: "OS::Neutron::Subnet"
properties:
name: StorPerf-Agent-Subnet
network_id: { get_resource: storperf_agent_net }
cidr: 192.168.101.0/24
gateway_ip: 192.168.101.1
enable_dhcp: true
allocation_pools:
- start: "192.168.101.2"
end: "192.168.101.250"
storperf_security_group:
type: OS::Neutron::SecurityGroup
properties:
description: Neutron security group rules
name: storperf_security_group
rules:
- remote_ip_prefix: 0.0.0.0/0
protocol: tcp
direction: ingress
- remote_ip_prefix: 0.0.0.0/0
protocol: icmp
direction: ingress
router:
type: OS::Neutron::Router
router_gateway:
type: OS::Neutron::RouterGateway
properties:
router_id: { get_resource: router }
network_id: { get_param: public_net_id }
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: storperf_agent_subnet }
outputs:
public_ip:
description: Floating IP address in public network
value: { get_attr: [ storperf_manager_ip, floating_ip_address ] }
|