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
66 The DNS domain used for the hosts. This should match the dhcp_domain
67 configured in the Undercloud neutron. Defaults to localdomain.
72 type: OS::Nova::Server
74 image: {get_param: Image}
75 image_update_policy: {get_param: ImageUpdatePolicy}
76 flavor: {get_param: Flavor}
77 key_name: {get_param: KeyName}
80 user_data_format: SOFTWARE_CONFIG
81 user_data: {get_resource: UserData}
82 name: {get_param: Hostname}
84 # Combine the NodeAdminUserData and NodeUserData mime archives
86 type: OS::Heat::MultipartMime
89 - config: {get_resource: NodeAdminUserData}
91 - config: {get_resource: NodeUserData}
94 # Creates the "heat-admin" user if configured via the environment
95 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
97 type: OS::TripleO::NodeAdminUserData
99 # For optional operator additional userdata
100 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
102 type: OS::TripleO::NodeUserData
105 type: OS::TripleO::CephStorage::Ports::StoragePort
107 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
110 type: OS::TripleO::CephStorage::Ports::StorageMgmtPort
112 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
115 type: OS::TripleO::CephStorage::Net::SoftwareConfig
117 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
118 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
119 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
122 type: OS::TripleO::Network::Ports::NetIpMap
124 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
125 StorageIp: {get_attr: [StoragePort, ip_address]}
126 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
129 type: OS::TripleO::Network::Ports::NetIpSubnetMap
131 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
132 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
133 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
136 type: OS::TripleO::SoftwareDeployment
138 config: {get_resource: NetworkConfig}
139 server: {get_resource: CephStorage}
140 actions: {get_param: NetworkDeploymentActions}
142 CephStorageDeployment:
143 type: OS::Heat::StructuredDeployment
144 depends_on: NetworkDeployment
146 config: {get_resource: CephStorageConfig}
147 server: {get_resource: CephStorage}
149 ntp_servers: {get_param: NtpServer}
150 enable_package_install: {get_param: EnablePackageInstall}
151 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
152 ceph_cluster_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
153 ceph_public_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephPublicNetwork]}]}
156 type: OS::Heat::StructuredConfig
158 group: os-apply-config
163 - heat_config_%{::deploy_config_name}
166 - ceph_cluster # provided by CephClusterConfig
172 raw_data: {get_file: hieradata/common.yaml}
174 mapped_data: {get_param: CephStorageExtraConfig}
176 mapped_data: {get_param: ExtraConfig}
178 raw_data: {get_file: hieradata/ceph.yaml}
180 ntp::servers: {get_input: ntp_servers}
181 tripleo::packages::enable_install: {get_input: enable_package_install}
182 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
183 ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
184 ceph::profile::params::public_network: {get_input: ceph_public_network}
186 # Resource for site-specific injection of root certificate
188 depends_on: CephStorageDeployment
189 type: OS::TripleO::NodeTLSCAData
191 server: {get_resource: CephStorage}
193 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
194 CephStorageExtraConfigPre:
195 depends_on: CephStorageDeployment
196 type: OS::TripleO::CephStorageExtraConfigPre
198 server: {get_resource: CephStorage}
200 # Hook for site-specific additional pre-deployment config,
201 # applying to all nodes, e.g node registration/unregistration
203 depends_on: [CephStorageExtraConfigPre, NodeTLSCAData]
204 type: OS::TripleO::NodeExtraConfig
206 server: {get_resource: CephStorage}
209 type: OS::TripleO::Tasks::PackageUpdate
212 type: OS::Heat::SoftwareDeployment
214 config: {get_resource: UpdateConfig}
215 server: {get_resource: CephStorage}
218 get_param: UpdateIdentifier
224 template: "IP HOST.DOMAIN HOST"
226 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CephStorageHostnameResolveNetwork]}]}
227 DOMAIN: {get_param: CloudDomain}
228 HOST: {get_attr: [CephStorage, name]}
229 nova_server_resource:
230 description: Heat resource handle for the ceph storage server
232 {get_resource: CephStorage}
234 description: IP address of the server in the storage network
235 value: {get_attr: [StoragePort, ip_address]}
236 storage_mgmt_ip_address:
237 description: IP address of the server in the storage_mgmt network
238 value: {get_attr: [StorageMgmtPort, ip_address]}
240 description: identifier which changes if the node configuration may need re-applying
244 - - {get_attr: [CephStorageDeployment, deploy_stdout]}
245 - {get_attr: [NodeTLSCAData, deploy_stdout]}
246 - {get_attr: [CephStorageExtraConfigPre, deploy_stdout]}
247 - {get_param: UpdateIdentifier}