-
Notifications
You must be signed in to change notification settings - Fork 1
/
node_group.yaml
106 lines (103 loc) · 3.16 KB
/
node_group.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
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
heat_template_version: 2016-04-08
parameters:
node_type:
type: string
description: Type of node to deploy in [master, worker]
constraints:
- allowed_values:
- master
- worker
node_flavor:
type: string
description: Flavor for the server to be created
default: m1.medium
constraints:
- custom_constraint: nova.flavor
image:
type: string
description: Image ID or image name to use for the server
default: "rhel-atomic-cloud-7.5.4"
constraints:
- custom_constraint: glance.image
key_name:
type: string
description: SSH Key Pair
default: "venv-mac"
constraints:
- custom_constraint: nova.keypair
node_scale:
type: number
description: Number of nodes to deploy
default: 3
rhn_orgid:
type: string
label: rhn activation org
description: Name of the rhn activation org
rhn_activationkey:
type: string
label: RHN activation key
description: rhn activation key
hidden: true
purpose_ident:
type: string
description: identifier to indicate node purpose
default: infra
local_domain_suffix:
type: string
description: domain suffix for local DNS for OpenShift
default: openstacklocal
internal_network:
type: string
description: network on which to deploy the cluster
internal_network_subnet:
type: string
description: subnet of network to attach to
cluster_security_groups:
type: comma_delimited_list
description: Security groups for cluster
external_service_subnet:
type: string
description: subnet to be used when deploying external services
server_group:
type: string
description: server group to associate nodes with
storage_setup:
type: string
description: The contents for /etc/sysconfig/docker-storage-setup
default: |
GROWPART=true
ROOT_SIZE=20G
DATA_SIZE=70G
# add-portworx.yaml inserts network and volume parameters here
resources:
node_group:
type: OS::Heat::ResourceGroup
depends_on: []
properties:
count: { get_param: node_scale }
resource_def:
type: server_atomic.yaml
properties:
server_name:
str_replace:
template: nodetype-ident-%index%.suffix
params:
nodetype: { get_param: node_type }
suffix: { get_param: local_domain_suffix }
ident: { get_param: purpose_ident }
purpose_ident: { get_param: purpose_ident }
flavor: { get_param: node_flavor }
image: { get_param: image }
key_name: { get_param: key_name }
rhn_orgid: { get_param: rhn_orgid }
rhn_activationkey: { get_param: rhn_activationkey }
port_network: { get_param: internal_network }
sec_groups: { get_param: cluster_security_groups }
storage_setup: { get_param: storage_setup }
external_service_subnet: { get_param: external_service_subnet }
server_group: { get_param: server_group }
# add-portworx.yaml inserts server group parameters here
outputs:
node_list:
description: host file contents
value: { get_attr: [ node_group, host_entry ] }