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: NodeUserData}
70 name: {get_param: Hostname}
73 type: OS::TripleO::NodeUserData
76 type: OS::TripleO::CephStorage::Ports::StoragePort
78 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
81 type: OS::TripleO::CephStorage::Ports::StorageMgmtPort
83 ControlPlaneIP: {get_attr: [CephStorage, networks, ctlplane, 0]}
86 type: OS::TripleO::CephStorage::Net::SoftwareConfig
88 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
89 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
92 type: OS::TripleO::Network::Ports::NetIpMap
94 StorageIp: {get_attr: [StoragePort, ip_address]}
95 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
98 type: OS::TripleO::Network::Ports::NetIpMap
100 StorageIp: {get_attr: [StoragePort, ip_subnet]}
101 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_subnet]}
104 type: OS::TripleO::SoftwareDeployment
106 config: {get_resource: NetworkConfig}
107 server: {get_resource: CephStorage}
109 CephStorageDeployment:
110 type: OS::Heat::StructuredDeployment
111 depends_on: NetworkDeployment
113 config: {get_resource: CephStorageConfig}
114 server: {get_resource: CephStorage}
118 template: '["server"]'
120 server: {get_param: NtpServer}
121 enable_package_install: {get_param: EnablePackageInstall}
122 ceph_cluster_network: {get_attr: [NetIpSubnetMap, net_ip_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
123 ceph_public_network: {get_attr: [NetIpSubnetMap, net_ip_map, {get_param: [ServiceNetMap, CephPublicNetwork]}]}
126 type: OS::Heat::StructuredConfig
128 group: os-apply-config
132 - heat_config_%{::deploy_config_name}
135 - ceph_cluster # provided by CephClusterConfig
141 raw_data: {get_file: hieradata/common.yaml}
143 mapped_data: {get_param: CephStorageExtraConfig}
145 mapped_data: {get_param: ExtraConfig}
147 raw_data: {get_file: hieradata/ceph.yaml}
149 ntp::servers: {get_input: ntp_servers}
150 tripleo::packages::enable_install: {get_input: enable_package_install}
151 ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
152 ceph::profile::params::public_network: {get_input: ceph_public_network}
155 type: OS::TripleO::Tasks::PackageUpdate
158 type: OS::Heat::SoftwareDeployment
160 config: {get_resource: UpdateConfig}
161 server: {get_resource: CephStorage}
164 get_param: UpdateIdentifier
170 template: "IP HOST.localdomain HOST"
172 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CephStorageHostnameResolveNetwork]}]}
173 HOST: {get_attr: [CephStorage, name]}
174 nova_server_resource:
175 description: Heat resource handle for the ceph storage server
177 {get_resource: CephStorage}
179 description: IP address of the server in the storage network
180 value: {get_attr: [StoragePort, ip_address]}
181 storage_mgmt_ip_address:
182 description: IP address of the server in the storage_mgmt network
183 value: {get_attr: [StorageMgmtPort, ip_address]}
185 description: identifier which changes if the node configuration may need re-applying
186 value: {get_attr: [CephStorageDeployment, deploy_stdout]}