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
29 description: Set to true to enable package installation via Puppet
33 description: Mapping of service_name -> network name. Typically set
34 via parameter_defaults in the resource registry.
40 Setting to a previously unused value during stack-update will trigger
41 package update on all nodes
44 default: '' # Defaults to Heat created hostname
48 Additional hiera configuration to inject into the cluster. Note
49 that CephStorageExtraConfig takes precedence over ExtraConfig.
51 CephStorageExtraConfig:
54 Role specific additional hiera configuration to inject into the cluster.
60 type: OS::Nova::Server
62 image: {get_param: Image}
63 image_update_policy: {get_param: ImageUpdatePolicy}
64 flavor: {get_param: Flavor}
65 key_name: {get_param: KeyName}
68 user_data_format: SOFTWARE_CONFIG
69 user_data: {get_resource: UserData}
70 name: {get_param: Hostname}
72 # Combine the NodeAdminUserData and NodeUserData mime archives
74 type: OS::Heat::MultipartMime
77 - config: {get_resource: NodeAdminUserData}
79 - config: {get_resource: NodeUserData}
82 # Creates the "heat-admin" user if configured via the environment
83 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
85 type: OS::TripleO::NodeAdminUserData
87 # For optional operator additional userdata
88 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
90 type: OS::TripleO::NodeUserData
93 type: OS::TripleO::CephStorage::Ports::StoragePort
95 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
98 type: OS::TripleO::CephStorage::Ports::StorageMgmtPort
100 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
103 type: OS::TripleO::CephStorage::Net::SoftwareConfig
105 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
106 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
107 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
110 type: OS::TripleO::Network::Ports::NetIpMap
112 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
113 StorageIp: {get_attr: [StoragePort, ip_address]}
114 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
117 type: OS::TripleO::Network::Ports::NetIpSubnetMap
119 ControlPlaneIp: {get_attr: [CephStorage, networks, ctlplane, 0]}
120 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
121 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
124 type: OS::TripleO::SoftwareDeployment
126 config: {get_resource: NetworkConfig}
127 server: {get_resource: CephStorage}
129 CephStorageDeployment:
130 type: OS::Heat::StructuredDeployment
131 depends_on: NetworkDeployment
133 config: {get_resource: CephStorageConfig}
134 server: {get_resource: CephStorage}
138 template: '["server"]'
140 server: {get_param: NtpServer}
141 enable_package_install: {get_param: EnablePackageInstall}
142 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
143 ceph_cluster_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
144 ceph_public_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephPublicNetwork]}]}
147 type: OS::Heat::StructuredConfig
149 group: os-apply-config
154 - heat_config_%{::deploy_config_name}
157 - ceph_cluster # provided by CephClusterConfig
163 raw_data: {get_file: hieradata/common.yaml}
165 mapped_data: {get_param: CephStorageExtraConfig}
167 mapped_data: {get_param: ExtraConfig}
169 raw_data: {get_file: hieradata/ceph.yaml}
171 ntp::servers: {get_input: ntp_servers}
172 tripleo::packages::enable_install: {get_input: enable_package_install}
173 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
174 ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
175 ceph::profile::params::public_network: {get_input: ceph_public_network}
177 # Hook for site-specific additional pre-deployment config, e.g extra hieradata
178 CephStorageExtraConfigPre:
179 depends_on: CephStorageDeployment
180 type: OS::TripleO::CephStorageExtraConfigPre
182 server: {get_resource: CephStorage}
185 type: OS::TripleO::Tasks::PackageUpdate
188 type: OS::Heat::SoftwareDeployment
190 config: {get_resource: UpdateConfig}
191 server: {get_resource: CephStorage}
194 get_param: UpdateIdentifier
200 template: "IP HOST.localdomain HOST"
202 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CephStorageHostnameResolveNetwork]}]}
203 HOST: {get_attr: [CephStorage, name]}
204 nova_server_resource:
205 description: Heat resource handle for the ceph storage server
207 {get_resource: CephStorage}
209 description: IP address of the server in the storage network
210 value: {get_attr: [StoragePort, ip_address]}
211 storage_mgmt_ip_address:
212 description: IP address of the server in the storage_mgmt network
213 value: {get_attr: [StorageMgmtPort, ip_address]}
215 description: identifier which changes if the node configuration may need re-applying
219 - - {get_attr: [CephStorageDeployment, deploy_stdout]}
220 - {get_attr: [CephStorageExtraConfigPre, deploy_stdout]}
221 - {get_param: UpdateIdentifier}