1 heat_template_version: 2014-10-16
4 Extra config to add swap space to nodes.
6 # Parameters passed from the parent template - note if you maintain
7 # out-of-tree templates they may require additional parameters if the
8 # in-tree templates add a new role.
14 description: Swap partition label
21 type: OS::Heat::SoftwareConfig
27 swap_partition=$(realpath /dev/disk/by-label/$swap_partition_label)
28 swapon $swap_partition
29 echo "$swap_partition swap swap defaults 0 0" >> /etc/fstab
31 - name: swap_partition_label
32 description: Swap partition label
35 {% for role in roles %}
36 {{role.name}}SwapDeployment:
37 type: OS::Heat::SoftwareDeploymentGroup
39 config: {get_resource: SwapConfig}
40 servers: {get_param: [servers, {{role.name}}]}
42 swap_partition_label: {get_param: swap_partition_label}