-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathceph_node.template.yaml
More file actions
110 lines (94 loc) · 2.67 KB
/
ceph_node.template.yaml
File metadata and controls
110 lines (94 loc) · 2.67 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
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
## Author: Jeffrey Guan
## Name: ceph_node.template.yaml
## Date: 2016-08-15
## Note: create ceph resources.
## Version: Kilo
heat_template_version: '2015-04-30'
description: Ceph server
parameters:
name:
type: string
default: "ceph"
image:
type: string
default: "ceph"
flavor:
type: string
default: m1.small
volumeSize:
type: string
description: size of the cinder volume used for database
default: 10
private_network:
type: json
description:
indx:
type: string
description:
security_group:
type: json
ceph_fixed_ip:
type: string
description:
resources:
## start of ceph node definitions
################################################################
# Begin: Create Port #
################################################################
# Creat a new port.
ETH0-br-fw-admin:
type: OS::Neutron::Port
properties:
name:
str_replace:
template: $INDX
params:
$INDX: { get_param: indx }
network: { get_param: [private_network, br-fw-admin, network] }
security_groups:
- { get_param: [security_group, sec_group] }
fixed_ips:
- ip_address: { get_param: ceph_fixed_ip }
################################################################
# End: Create Port #
################################################################
# Create ceph node.
ceph_node:
type: OS::Nova::Server
# depends_on: cpuVolume
properties:
name:
str_replace:
template: $SERVER_NAME
params:
$SERVER_NAME: { get_param: name }
flavor: { get_param: flavor }
config_drive: True
image: { get_param: image }
user_data_format: RAW
user_data:
str_replace:
template: { get_file: userdata_ceph_node.sh }
params:
$node_countA: { get_param: indx }
networks:
- port: { get_resource: ETH0-br-fw-admin }
# block_device_mapping:
# - { volume_id: { get_resource: cpuVolume }, device_name: vdb, delete_on_termination: 'true' }
# Create volume for compute node.
# cpuVolume:
# type: OS::Cinder::Volume
# properties:
# name:
# str_replace:
# template: $name:vdb
# params:
# $name: { get_param: name }
# size: { get_param: volumeSize }
#cpuVolumeAttach:
# type: OS::Cinder::VolumeAttachment
# properties:
# instance_uuid: { get_resource: cpu_node }
# volume_id: { get_resource: cpuVolume }
# mountpoint: /dev/vdc
## end of node compute node definitions