Browse Source

Merge "Update bottstrapping doc for flavors"

Jenkins 2 years ago
parent
commit
78924dcd4a
1 changed files with 55 additions and 3 deletions
  1. 55
    3
      doc/source/bootstrapping.rst

+ 55
- 3
doc/source/bootstrapping.rst View File

@@ -184,7 +184,7 @@ Note, that by default **enable** option is False. So if user wants to use
184 184
 bootstrapping he should explicitly set it to True.
185 185
 
186 186
 The last part of the snippet describes image specific options.
187
-All options should be specified, othrwise it will cause an error during job
187
+All options should be specified, otherwise it will cause an error during job
188 188
 execution:
189 189
 
190 190
 .. list-table:: **Glance image bootstrapping default configuration options**
@@ -232,5 +232,57 @@ Creation of the flavors is handled by nova post deployment job
232 232
 **nova-create-default-flavors**, which uses Bash script from fuel-ccp-nova
233 233
 repository: *service/files/create-default-flavors.sh.j2*
234 234
 
235
-Right now there is no option to specify custom flavors bootstrapping in the
236
-~/.ccp.yaml, but it can be added in future.
235
+Also the CCP allows to bootstrap custom flavors. Similarly previous sections
236
+it can be done by adding the following snippet to ~/.ccp.yaml:
237
+
238
+::
239
+
240
+ configs:
241
+   nova:
242
+     bootstrap:
243
+       enable: true
244
+       flavors:
245
+         - name: custom_name1
246
+           id: 42
247
+           ram: 1024
248
+           disk: 1
249
+           vcpus: 1
250
+         - name: custom_name2
251
+           id: 43
252
+           ram: 2024
253
+           disk: 2
254
+           vcpus: 2
255
+
256
+This snippet adds **bootstrap** section for nova service and enables it.
257
+Note, that by default **enable** option is False. So if user wants to use
258
+bootstrapping he should explicitly set it to True.
259
+
260
+The last part of the snippet describes list of flavors with related options.
261
+All options should be specified, otherwise it will cause an error during job
262
+execution:
263
+
264
+.. list-table:: **Nova flavor bootstrapping configuration options**
265
+   :widths: 10 25 10
266
+   :header-rows: 1
267
+
268
+   * - Name
269
+     - Description
270
+     - Default
271
+   * - name
272
+     - Name of the custom flavor.
273
+     - --
274
+   * - id
275
+     - Indentifier of the flavor.
276
+     - --
277
+   * - ram
278
+     - Vaqlue of the RAM memory for the current flavor.
279
+     - --
280
+   * - disk
281
+     - Disk size for the curretn flavor.
282
+     - --
283
+   * - vcpus
284
+     - Number of the vcpus for the current flavor.
285
+     - --
286
+
287
+.. NOTE:: Default value for flavors is an empty list, so it means that
288
+          creation of custom flavors will be skipped.

Loading…
Cancel
Save