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.
16 objectstorage_servers:
22 description: Swap partition label
29 type: OS::Heat::SoftwareConfig
35 swap_partition=$(realpath /dev/disk/by-label/$swap_partition_label)
36 swapon $swap_partition
37 echo "$swap_partition swap swap defaults 0 0" >> /etc/fstab
39 - name: swap_partition_label
40 description: Swap partition label
43 ControllerSwapDeployment:
44 type: OS::Heat::SoftwareDeploymentGroup
46 config: {get_resource: SwapConfig}
47 servers: {get_param: controller_servers}
49 swap_partition_label: {get_param: swap_partition_label}
52 ComputeSwapDeployment:
53 type: OS::Heat::SoftwareDeploymentGroup
55 config: {get_resource: SwapConfig}
56 servers: {get_param: compute_servers}
58 swap_partition_label: {get_param: swap_partition_label}
61 BlockStorageSwapDeployment:
62 type: OS::Heat::SoftwareDeploymentGroup
64 config: {get_resource: SwapConfig}
65 servers: {get_param: blockstorage_servers}
67 swap_partition_label: {get_param: swap_partition_label}
70 ObjectStorageSwapDeployment:
71 type: OS::Heat::SoftwareDeploymentGroup
73 config: {get_resource: SwapConfig}
74 servers: {get_param: objectstorage_servers}
76 swap_partition_label: {get_param: swap_partition_label}
79 CephStorageSwapDeployment:
80 type: OS::Heat::SoftwareDeploymentGroup
82 config: {get_resource: SwapConfig}
83 servers: {get_param: cephstorage_servers}
85 swap_partition_label: {get_param: swap_partition_label}