2015-05-20 10:08:18 -07:00
|
|
|
heat_template_version: 2015-04-30
|
2015-02-01 18:52:18 -05:00
|
|
|
|
|
|
|
description: >
|
2015-04-17 15:02:10 +02:00
|
|
|
OpenStack ceph storage node post deployment for Puppet
|
2015-02-01 18:52:18 -05:00
|
|
|
|
|
|
|
parameters:
|
2015-07-16 10:43:18 +02:00
|
|
|
ConfigDebug:
|
|
|
|
default: false
|
|
|
|
description: Whether to run config management (e.g. Puppet) in debug mode.
|
|
|
|
type: boolean
|
2015-02-01 18:52:18 -05:00
|
|
|
servers:
|
|
|
|
type: json
|
2015-06-12 15:43:30 +01:00
|
|
|
NodeConfigIdentifiers:
|
|
|
|
type: json
|
|
|
|
description: Value which changes if the node configuration may need to be re-applied
|
|
|
|
|
2015-02-01 18:52:18 -05:00
|
|
|
resources:
|
2015-11-13 15:01:13 -05:00
|
|
|
|
|
|
|
CephStorageArtifactsConfig:
|
|
|
|
type: deploy-artifacts.yaml
|
|
|
|
|
|
|
|
CephStorageArtifactsDeploy:
|
|
|
|
type: OS::Heat::StructuredDeployments
|
|
|
|
properties:
|
|
|
|
servers: {get_param: servers}
|
|
|
|
config: {get_resource: CephStorageArtifactsConfig}
|
|
|
|
input_values:
|
|
|
|
update_identifier: {get_param: NodeConfigIdentifiers}
|
|
|
|
|
2015-02-01 18:52:18 -05:00
|
|
|
CephStoragePuppetConfig:
|
|
|
|
type: OS::Heat::SoftwareConfig
|
|
|
|
properties:
|
|
|
|
group: puppet
|
2015-07-16 10:43:18 +02:00
|
|
|
options:
|
|
|
|
enable_debug: {get_param: ConfigDebug}
|
2015-02-01 18:52:18 -05:00
|
|
|
outputs:
|
|
|
|
- name: result
|
|
|
|
config:
|
|
|
|
get_file: manifests/overcloud_cephstorage.pp
|
|
|
|
|
2015-03-18 12:54:33 -04:00
|
|
|
CephStorageDeployment_Step1:
|
2015-02-01 18:52:18 -05:00
|
|
|
type: OS::Heat::StructuredDeployments
|
2015-11-13 15:01:13 -05:00
|
|
|
depends_on: CephStorageArtifactsDeploy
|
2015-02-01 18:52:18 -05:00
|
|
|
properties:
|
2015-12-10 14:48:04 +13:00
|
|
|
name: CephStorageDeployment_Step1
|
2015-02-01 18:52:18 -05:00
|
|
|
servers: {get_param: servers}
|
|
|
|
config: {get_resource: CephStoragePuppetConfig}
|
2015-06-12 15:43:30 +01:00
|
|
|
input_values:
|
|
|
|
update_identifier: {get_param: NodeConfigIdentifiers}
|
2015-04-09 14:28:10 +01:00
|
|
|
|
|
|
|
# Note, this should come last, so use depends_on to ensure
|
|
|
|
# this is created after any other resources.
|
|
|
|
ExtraConfig:
|
|
|
|
depends_on: CephStorageDeployment_Step1
|
|
|
|
type: OS::TripleO::NodeExtraConfigPost
|
|
|
|
properties:
|
|
|
|
servers: {get_param: servers}
|
|
|
|
|