-
Notifications
You must be signed in to change notification settings - Fork 0
/
storagenode_template.yaml
78 lines (74 loc) · 1.98 KB
/
storagenode_template.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
heat_template_version: 2016-10-14
description: >
A single storage node, with multiple volumes
parameters:
image_id:
type: string
storage_node_flavor:
type: string
az:
type: string
key_name:
type: string
node_extra_packages:
type: string
osds_per_storage_node:
type: number
osd_volume_size_in_gb:
type: number
storage_node_name:
type: string
node_extra_packages:
type: string
network:
type: string
stack_name:
type: string
resources:
storage-node:
type: OS::Nova::Server
properties:
metadata:
ansible_stack:
str_replace:
template: $stackname
params:
$stackname: { get_param: stack_name }
ansible_role:
str_replace:
template: storage-$stackname
params:
$stackname: { get_param: stack_name }
image: { get_param: image_id }
flavor: { get_param: storage_node_flavor }
key_name: { get_param: key_name }
availability_zone: { get_param: az }
networks:
- network: { get_param: network }
security_groups:
- str_replace:
template: external-inbound-$name
params:
$name: { get_param: stack_name }
- str_replace:
template: cluster-internal-$name
params:
$name: { get_param: stack_name }
name: { get_param: storage_node_name }
user_data:
str_replace:
template:
get_file: node.sh
params:
$EXTRA_PACKAGES: { get_param: node_extra_packages }
group_of_volumes:
type: OS::Heat::ResourceGroup
properties:
count: { get_param: osds_per_storage_node }
resource_def:
type: volume_template.yaml
properties:
stack_name: { get_param: stack_name }
instance_id: { get_resource: storage-node }
osd_volume_size_in_gb: { get_param: osd_volume_size_in_gb }
az: { get_param: az }