Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / sample-env-generator / composable-roles.yaml
1 #
2 # This environment generator is used to generate some sample composable role
3 # environment files.
4 #
5 environments:
6   -
7     name: composable-roles/monolithic-nonha
8     title: Monolithic Controller Non-HA deployment
9     description: |
10       A Heat environment that can be used to deploy controller and compute
11       services in an Non-HA configuration with SSL undercloud only and a
12       flat network.
13       This should be used with a roles_data.yaml containing the Controller,
14       Compute and CephStorage roles.
15       openstack overcloud roles generate -o ~/roles_data.yaml Controller Compute CephStorage
16     files:
17       overcloud.yaml:
18         parameters:
19           - ControllerHostnameFormat
20           - ComputeHostnameFormat
21           - CephStorageHostnameFormat
22           - ControllerCount
23           - ComputeCount
24           - CephStorageCount
25       puppet/services/time/ntp.yaml:
26         parameters:
27           - NtpServer
28       sample-env-generator/composable-roles.yaml:
29         parameters:
30           - DnsServers
31           - OvercloudControllerFlavor
32           - OvercloudComputeFlavor
33           - OvercloudCephStorageFlavor
34     sample_values:
35       ControllerCount: 1
36       OvercloudControllerFlavor: control
37       ComputeCount: 1
38       OvercloudComputeFlavor: compute
39       CephStorageCount: 1
40       OvercloudCephStorageFlavor: ceph
41
42   -
43     name: composable-roles/monolithic-ha
44     title: Monolithic Controller HA deployment
45     description: |
46       A Heat environment that can be used to deploy controller and compute
47       services in an HA configuration with SSL everywhere and network
48       isolation.
49       This should be used with a roles_data.yaml containing the Controller,
50       Compute and CephStorage roles.
51       openstack overcloud roles generate -o ~/roles_data.yaml Controller Compute CephStorage
52     files:
53       overcloud.yaml:
54         parameters:
55           - ControllerHostnameFormat
56           - ComputeHostnameFormat
57           - CephStorageHostnameFormat
58           - ControllerCount
59           - ComputeCount
60           - CephStorageCount
61       puppet/services/time/ntp.yaml:
62         parameters:
63           - NtpServer
64       sample-env-generator/composable-roles.yaml:
65         parameters:
66           - DnsServers
67           - OvercloudControllerFlavor
68           - OvercloudComputeFlavor
69           - OvercloudCephStorageFlavor
70     sample_values:
71       ControllerCount: 3
72       OvercloudControllerFlavor: control
73       ComputeCount: 3
74       OvercloudComputeFlavor: compute
75       CephStorageCount: 1
76       OvercloudCephStorageFlavor: ceph
77
78   -
79     name: composable-roles/standalone
80     title: Controller HA deployment with standalone Database, Messaging and Networker nodes.
81     description: |
82       A Heat environment that can be used to deploy controller, database,
83       messaging, networker and compute services in an HA configuration with SSL
84       everywhere and network isolation.
85       This should be used with a roles_data.yaml containing the
86       ControllerOpenstack, Database, Messaging, Networker, Compute and
87       CephStorage roles.
88       openstack overcloud roles generate -o ~/roles_data.yaml ControllerOpenstack Database Messaging Networker Compute CephStorage
89     files:
90       overcloud.yaml:
91         parameters:
92           - ComputeHostnameFormat
93           - CephStorageHostnameFormat
94           - ComputeCount
95           - CephStorageCount
96       puppet/services/time/ntp.yaml:
97         parameters:
98           - NtpServer
99       sample-env-generator/composable-roles.yaml:
100         parameters:
101           - ControllerOpenstackHostnameFormat
102           - DnsServers
103           - ControllerOpenstackCount
104           - DatabaseCount
105           - MessagingCount
106           - NetworkerCount
107           - OvercloudControllerOpenstackFlavor
108           - OvercloudComputeFlavor
109           - OvercloudCephStorageFlavor
110           - OvercloudDatabaseFlavor
111           - OvercloudMessagingFlavor
112           - OvercloudNetworkerFlavor
113     sample_values:
114       ControllerOpenstackCount: 3
115       OvercloudControllerOpenstackFlavor: control
116       ComputeCount: 1
117       OvercloudComputeFlavor: compute
118       CephStorageCount: 1
119       OvercloudCephStorageFlavor: ceph
120       DatabaseCount: 3
121       OvercloudDatabaseFlavor: db
122       MessagingCount: 3
123       OvercloudMessagingFlavor: messaging
124       NetworkerCount: 2
125       OvercloudNetworkerFlavor: networker
126
127
128 # NOTE(aschultz): So because these are dynamic based on the roles used, we
129 # do not currently define these in any heat files. So we're defining them here
130 # so that the sample env generator can still provide these configuration items
131 # in the generated config files.
132 parameters:
133   DnsServers:
134     default: ['8.8.8.8', '8,8.4.4']
135     description: DNS servers to use for the Overcloud
136     type: comma_delimited_list
137   # Dynamic vars based on roles
138   ControllerOpenstackCount:
139     default: 0
140     description: Number of ControllerOpenstack nodes
141     type: number
142   DatabaseCount:
143     default: 0
144     description: Number of Database nodes
145     type: number
146   MessagingCount:
147     default: 0
148     description: Number of Messaging nodes
149     type: number
150   NetworkerCount:
151     default: 0
152     description: Number of Networker nodes
153     type: number
154   ControllerOpenstackHostnameFormat:
155     type: string
156     description: >
157       Format for ControllerOpenstack node hostnames
158       Note %index% is translated into the index of the node, e.g 0/1/2 etc
159       and %stackname% is replaced with the stack name e.g overcloud
160     default: "%stackname%-controller-%index%"
161   OvercloudControllerFlavor:
162     default: control
163     description: Name of the flavor for Controller nodes
164     type: string
165   OvercloudControllerOpenstackFlavor:
166     default: control
167     description: Name of the flavor for ControllerOpenstack nodes
168     type: string
169   OvercloudComputeFlavor:
170     default: compute
171     description: Name of the flavor for Compute nodes
172     type: string
173   OvercloudCephStorageFlavor:
174     default: compute
175     description: Name of the flavor for Ceph nodes
176     type: string
177   OvercloudDatabaseFlavor:
178     default: database
179     description: Name of the flavor for Database nodes
180     type: string
181   OvercloudMessagingFlavor:
182     default: messaging
183     description: Name of the flavor for Messaging nodes
184     type: string
185   OvercloudNetworkerFlavor:
186     default: networker
187     description: Name of the flavor for Networker nodes
188     type: string
189