Add CephStorageExtraConfigPre resource

This change adds a CephStorageExtraConfigPre which can be used
to distribute hooks for the CephStorage nodes.

Change-Id: Id0023d8ffddb3ee5e855d5dcc32c76bc41ce4c63
This commit is contained in:
Giulio Fidente 2015-09-25 20:02:36 +02:00
parent 4570ce86a9
commit 02c7a6f12b
2 changed files with 13 additions and 1 deletions

View File

@ -34,6 +34,7 @@ resource_registry:
OS::TripleO::NodeUserData: firstboot/userdata_default.yaml OS::TripleO::NodeUserData: firstboot/userdata_default.yaml
OS::TripleO::ControllerExtraConfigPre: puppet/extraconfig/pre_deploy/default.yaml OS::TripleO::ControllerExtraConfigPre: puppet/extraconfig/pre_deploy/default.yaml
OS::TripleO::ComputeExtraConfigPre: puppet/extraconfig/pre_deploy/default.yaml OS::TripleO::ComputeExtraConfigPre: puppet/extraconfig/pre_deploy/default.yaml
OS::TripleO::CephStorageExtraConfigPre: puppet/extraconfig/pre_deploy/default.yaml
OS::TripleO::NodeExtraConfigPost: extraconfig/post_deploy/default.yaml OS::TripleO::NodeExtraConfigPost: extraconfig/post_deploy/default.yaml
# "AllNodes" Extra cluster config, runs on all nodes prior to the post_deploy # "AllNodes" Extra cluster config, runs on all nodes prior to the post_deploy

View File

@ -172,6 +172,13 @@ resources:
ceph::profile::params::cluster_network: {get_input: ceph_cluster_network} ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
ceph::profile::params::public_network: {get_input: ceph_public_network} ceph::profile::params::public_network: {get_input: ceph_public_network}
# Hook for site-specific additional pre-deployment config, e.g extra hieradata
CephStorageExtraConfigPre:
depends_on: CephStorageDeployment
type: OS::TripleO::CephStorageExtraConfigPre
properties:
server: {get_resource: CephStorage}
UpdateConfig: UpdateConfig:
type: OS::TripleO::Tasks::PackageUpdate type: OS::TripleO::Tasks::PackageUpdate
@ -204,4 +211,8 @@ outputs:
value: {get_attr: [StorageMgmtPort, ip_address]} value: {get_attr: [StorageMgmtPort, ip_address]}
config_identifier: config_identifier:
description: identifier which changes if the node configuration may need re-applying description: identifier which changes if the node configuration may need re-applying
value: {get_attr: [CephStorageDeployment, deploy_stdout]} value:
list_join:
- ','
- - {get_attr: [CephStorageDeployment, deploy_stdout]}
- {get_attr: [CephStorageExtraConfigPre, deploy_stdout]}