1 heat_template_version: 2015-04-30
2 description: 'OpenStack ceph storage node configured by Puppet'
5 description: Flavor for the Ceph Storage node.
8 - custom_constraint: nova.flavor
11 default: overcloud-ceph-storage
13 - custom_constraint: glance.image
15 default: 'REBUILD_PRESERVE_EPHEMERAL'
16 description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
19 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
23 - custom_constraint: nova.keypair
26 description: Comma-separated list of ntp servers
27 type: comma_delimited_list
30 description: Set to true to enable package installation via Puppet
34 description: Mapping of service_name -> network name. Typically set
35 via parameter_defaults in the resource registry.
41 Setting to a previously unused value during stack-update will trigger
42 package update on all nodes
45 default: '' # Defaults to Heat created hostname
49 Additional hiera configuration to inject into the cluster. Note
50 that CephStorageExtraConfig takes precedence over ExtraConfig.
52 CephStorageExtraConfig:
55 Role specific additional hiera configuration to inject into the cluster.
57 NetworkDeploymentActions:
58 type: comma_delimited_list
60 Heat action when to apply network configuration changes
65 type: OS::Nova::Server
67 image: {get_param: Image}
68 image_update_policy: {get_param: ImageUpdatePolicy}
69 flavor: {get_param: Flavor}
70 key_name: {get_param: KeyName}
73 user_data_format: SOFTWARE_CONFIG
74 user_data: {get_resource: UserData}
75 name: {get_param: Hostname}
77 # Combine the NodeAdminUserData and NodeUserData mime archives
79 type: OS::Heat::MultipartMime
82 - config: {get_resource: NodeAdminUserData}
84 - config: {get_resource: NodeUserData}
87 # Creates the "heat-admin" user if configured via the environment
88 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
90 type: OS::TripleO::NodeAdminUserData
92 # For optional operator additional userdata
93 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
95 type: OS::TripleO::NodeUserData
98 type: OS::TripleO::CephStorage::Ports::StoragePort
100 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
103 type: OS::TripleO::CephStorage::Ports::StorageMgmtPort
105 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
108 type: OS::TripleO::CephStorage::Net::SoftwareConfig
110 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
111 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
112 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
115 type: OS::TripleO::Network::Ports::NetIpMap
117 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
118 StorageIp: {get_attr: [StoragePort, ip_address]}
119 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
122 type: OS::TripleO::Network::Ports::NetIpSubnetMap
124 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
125 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
126 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
129 type: OS::TripleO::SoftwareDeployment
131 config: {get_resource: NetworkConfig}
132 server: {get_resource: CephStorage}
133 actions: {get_param: NetworkDeploymentActions}
135 CephStorageDeployment:
136 type: OS::Heat::StructuredDeployment
137 depends_on: NetworkDeployment
139 config: {get_resource: CephStorageConfig}
140 server: {get_resource: CephStorage}
142 ntp_servers: {get_param: NtpServer}
143 enable_package_install: {get_param: EnablePackageInstall}
144 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
145 ceph_cluster_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
146 ceph_public_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephPublicNetwork]}]}
149 type: OS::Heat::StructuredConfig
151 group: os-apply-config
156 - heat_config_%{::deploy_config_name}
159 - ceph_cluster # provided by CephClusterConfig
165 raw_data: {get_file: hieradata/common.yaml}
167 mapped_data: {get_param: CephStorageExtraConfig}
169 mapped_data: {get_param: ExtraConfig}
171 raw_data: {get_file: hieradata/ceph.yaml}
173 ntp::servers: {get_input: ntp_servers}
174 tripleo::packages::enable_install: {get_input: enable_package_install}
175 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
176 ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
177 ceph::profile::params::public_network: {get_input: ceph_public_network}
179 # Resource for site-specific injection of root certificate
181 depends_on: CephStorageDeployment
182 type: OS::TripleO::NodeTLSCAData
184 server: {get_resource: CephStorage}
186 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
187 CephStorageExtraConfigPre:
188 depends_on: CephStorageDeployment
189 type: OS::TripleO::CephStorageExtraConfigPre
191 server: {get_resource: CephStorage}
193 # Hook for site-specific additional pre-deployment config,
194 # applying to all nodes, e.g node registration/unregistration
196 depends_on: [CephStorageExtraConfigPre, NodeTLSCAData]
197 type: OS::TripleO::NodeExtraConfig
199 server: {get_resource: CephStorage}
202 type: OS::TripleO::Tasks::PackageUpdate
205 type: OS::Heat::SoftwareDeployment
207 config: {get_resource: UpdateConfig}
208 server: {get_resource: CephStorage}
211 get_param: UpdateIdentifier
217 template: "IP HOST.localdomain HOST"
219 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CephStorageHostnameResolveNetwork]}]}
220 HOST: {get_attr: [CephStorage, name]}
221 nova_server_resource:
222 description: Heat resource handle for the ceph storage server
224 {get_resource: CephStorage}
226 description: IP address of the server in the storage network
227 value: {get_attr: [StoragePort, ip_address]}
228 storage_mgmt_ip_address:
229 description: IP address of the server in the storage_mgmt network
230 value: {get_attr: [StorageMgmtPort, ip_address]}
232 description: identifier which changes if the node configuration may need re-applying
236 - - {get_attr: [CephStorageDeployment, deploy_stdout]}
237 - {get_attr: [NodeTLSCAData, deploy_stdout]}
238 - {get_attr: [CephStorageExtraConfigPre, deploy_stdout]}
239 - {get_param: UpdateIdentifier}