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.
19 objectstorage_servers:
23 # Note extra parameters can be defined, then passed data via the
24 # environment parameter_defaults, without modifying the parent template
29 type: OS::Heat::RandomString
32 type: OS::Heat::SoftwareConfig
39 echo $random_value > /root/random_value
41 RandomDeploymentsController:
42 type: OS::Heat::SoftwareDeployments
44 name: RandomDeploymentsController
45 servers: {get_param: controller_servers}
46 config: {get_resource: RandomConfig}
47 actions: ['CREATE'] # Only do this on CREATE
49 random_value: {get_attr: [Random, value]}
51 RandomDeploymentsCompute:
52 type: OS::Heat::SoftwareDeployments
54 name: RandomDeploymentsCompute
55 servers: {get_param: compute_servers}
56 config: {get_resource: RandomConfig}
57 actions: ['CREATE'] # Only do this on CREATE
59 random_value: {get_attr: [Random, value]}