in Education by
I am trying to create a cluster using Heat Templates of Openstack. I have following template defining my resource group. cluster: type: OS::Heat::ResourceGroup properties: count: { get_param: instance_count } resource_def: type: ../templates/vm.yaml properties: image: { get_param: image } flavor: { get_param: flavor } private_network : { get_attr : [network, name] } This works, but the name of all these servers is very cryptic. I was wondering if it would be possible to provide a prefix to name to each of the instances. Or another way could be is I can str_replace a template value with the current index of the cluster count. Is there a way to achieve this? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Nevermind, got it from the ResourceGroup documentation. Use %index%. Here is the example from the documentation. resources: my_indexed_group: type: OS::Heat::ResourceGroup properties: count: 3 resource_def: type: OS::Nova::Server properties: # create a unique name for each server # using its index in the group name: my_server_%index% image: CentOS 6.5 flavor: 4GB Performance

Related questions

0 votes
    Kafka cluster can enforce quota on requests to control the broker resources used by clients. (1)False (2)True...
asked Jun 16, 2021 in Technology by JackTerrance
0 votes
    Custom Helpers can be created in Handlebars using _________ a)Handlebars.regHelper() b)Handlebars.loadHelper() c)Handlebars.createHelper() d)Handlebars.registerHelper()...
asked Apr 29, 2021 in Technology by JackTerrance
0 votes
    Custom Helpers can be created in Handlebars using _________ a)Handlebars.regHelper() b)Handlebars.loadHelper() c)Handlebars.createHelper() d)Handlebars.registerHelper()...
asked Dec 11, 2020 in Education by Editorial Staff
0 votes
    What are the different types of email templates that can be created in Salesforce?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    Which component of OpenStack facilitates the creation and management of block storage devices? a. Swift b. Keystone c. Nova d. Cinder Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Which components of openstack facilities the creation and management of block storage devices Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    Using sstableloader external data cannot be loaded into the cluster (1)False (2)True...
asked May 7, 2021 in Technology by JackTerrance
0 votes
    Using sstableloader external data cannot be loaded into the cluster (1)False (2)True...
asked Apr 16, 2021 by JackTerrance
0 votes
    Suppose you have designed a Big Data batch using the MapReduce framework. Now you want to execute it on a cluster ... Run view? Name Node Data Node Resource Manager Job Tracker...
asked Mar 23, 2021 in Technology by JackTerrance
0 votes
    I'm using Semantic-UI-React in my React/Rails project and trying to use a Form.Select drop down ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    I'm using Semantic-UI-React in my React/Rails project and trying to use a Form.Select drop down ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I have some columns that have the same names. I would like to add a 1 to the repeating column ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
0 votes
    Decomposers dissipate some amount of energy in the form of (a) Light (b) Electricity (c) Sound ... ,Science proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    The electrical energy required to heat a bucket of water to a certain temperature is 10 kWh. If heat losses, are ... GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
...