1 heat_template_version: 2014-10-16
4 Example extra config for cluster config
5 this example deploys a random string to all controller and compute
6 nodes, showing how data may be shared amongst nodes, vs the
7 other ExtraConfig interfaces which act only on individual nodes.
9 # Parameters passed from the parent template - note if you maintain
10 # out-of-tree templates they may require additional parameters if the
11 # in-tree templates add a new role.
15 # Note extra parameters can be defined, then passed data via the
16 # environment parameter_defaults, without modifying the parent template
21 type: OS::Heat::RandomString
24 type: OS::Heat::SoftwareConfig
31 echo $random_value > /root/random_value
33 RandomDeploymentsController:
34 type: OS::Heat::SoftwareDeployments
36 name: RandomDeploymentsController
37 servers: {get_param: [servers, Controller]}
38 config: {get_resource: RandomConfig}
39 actions: ['CREATE'] # Only do this on CREATE
41 random_value: {get_attr: [Random, value]}
43 RandomDeploymentsCompute:
44 type: OS::Heat::SoftwareDeployments
46 name: RandomDeploymentsCompute
47 servers: {get_param: [servers, Compute]}
48 config: {get_resource: RandomConfig}
49 actions: ['CREATE'] # Only do this on CREATE
51 random_value: {get_attr: [Random, value]}