Replace NodeConfigIdentifiers with DeployIdentifier
We added NodeConfigIdentifiers to trigger config to be re-applied on update, but then later added DeployIdentifier which forces config to *always* be applied on update, so we can simplify things by just referencing the DeployIdentifier directly. Change-Id: I79212def1936740825b714419dcb4952bc586a39
This commit is contained in:
parent
794fece5cc
commit
59b6afcd35
@ -5,8 +5,8 @@ description: >
|
||||
parameters:
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
DockerNamespace:
|
||||
type: string
|
||||
@ -65,7 +65,7 @@ resources:
|
||||
servers: {get_param: servers}
|
||||
config: {get_resource: ComputePuppetConfig}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
tripleo::packages::enable_install: True
|
||||
|
||||
CopyEtcConfig:
|
||||
|
@ -1392,10 +1392,6 @@ resources:
|
||||
depends_on: [ControllerBootstrapNodeDeployment, ControllerAllNodesDeployment, ControllerSwiftDeployment, ControllerCephDeployment]
|
||||
properties:
|
||||
servers: {get_attr: [Controller, attributes, nova_server_resource]}
|
||||
NodeConfigIdentifiers:
|
||||
allnodes_extra: {get_attr: [AllNodesExtraConfig, config_identifier]}
|
||||
controller_config: {get_attr: [Controller, attributes, config_identifier]}
|
||||
deployment_identifier: {get_param: DeployIdentifier}
|
||||
RoleData: {get_attr: [ControllerServiceChain, role_data]}
|
||||
|
||||
ComputeNodesPostDeployment:
|
||||
@ -1403,10 +1399,6 @@ resources:
|
||||
depends_on: [ComputeAllNodesDeployment, ComputeCephDeployment]
|
||||
properties:
|
||||
servers: {get_attr: [Compute, attributes, nova_server_resource]}
|
||||
NodeConfigIdentifiers:
|
||||
allnodes_extra: {get_attr: [AllNodesExtraConfig, config_identifier]}
|
||||
compute_config: {get_attr: [Compute, attributes, config_identifier]}
|
||||
deployment_identifier: {get_param: DeployIdentifier}
|
||||
RoleData: {get_attr: [ComputeServiceChain, role_data]}
|
||||
|
||||
ObjectStorageNodesPostDeployment:
|
||||
@ -1414,10 +1406,6 @@ resources:
|
||||
depends_on: [ObjectStorageSwiftDeployment, ObjectStorageAllNodesDeployment]
|
||||
properties:
|
||||
servers: {get_attr: [ObjectStorage, attributes, nova_server_resource]}
|
||||
NodeConfigIdentifiers:
|
||||
allnodes_extra: {get_attr: [AllNodesExtraConfig, config_identifier]}
|
||||
objectstorage_config: {get_attr: [ObjectStorage, attributes, config_identifier]}
|
||||
deployment_identifier: {get_param: DeployIdentifier}
|
||||
RoleData: {get_attr: [ObjectStorageServiceChain, role_data]}
|
||||
|
||||
BlockStorageNodesPostDeployment:
|
||||
@ -1425,10 +1413,6 @@ resources:
|
||||
depends_on: [ControllerNodesPostDeployment, BlockStorageAllNodesDeployment]
|
||||
properties:
|
||||
servers: {get_attr: [BlockStorage, attributes, nova_server_resource]}
|
||||
NodeConfigIdentifiers:
|
||||
allnodes_extra: {get_attr: [AllNodesExtraConfig, config_identifier]}
|
||||
blockstorage_config: {get_attr: [BlockStorage, attributes, config_identifier]}
|
||||
deployment_identifier: {get_param: DeployIdentifier}
|
||||
RoleData: {get_attr: [BlockStorageServiceChain, role_data]}
|
||||
|
||||
CephStorageNodesPostDeployment:
|
||||
@ -1436,10 +1420,6 @@ resources:
|
||||
depends_on: [ControllerNodesPostDeployment, CephStorageCephDeployment, CephStorageAllNodesDeployment]
|
||||
properties:
|
||||
servers: {get_attr: [CephStorage, attributes, nova_server_resource]}
|
||||
NodeConfigIdentifiers:
|
||||
allnodes_extra: {get_attr: [AllNodesExtraConfig, config_identifier]}
|
||||
cephstorage_config: {get_attr: [CephStorage, attributes, config_identifier]}
|
||||
deployment_identifier: {get_param: DeployIdentifier}
|
||||
RoleData: {get_attr: [CephStorageServiceChain, role_data]}
|
||||
|
||||
outputs:
|
||||
|
@ -10,12 +10,12 @@ parameters:
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
RoleData:
|
||||
type: json
|
||||
default: {}
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
|
||||
resources:
|
||||
|
||||
@ -28,7 +28,7 @@ resources:
|
||||
servers: {get_param: servers}
|
||||
config: {get_resource: CephStorageArtifactsConfig}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
CephStoragePuppetConfig:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
@ -57,7 +57,7 @@ resources:
|
||||
config: {get_resource: CephStoragePuppetConfig}
|
||||
input_values:
|
||||
step: 2
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
CephStorageDeployment_Step3:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -68,7 +68,7 @@ resources:
|
||||
config: {get_resource: CephStoragePuppetConfig}
|
||||
input_values:
|
||||
step: 3
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
# Note, this should come last, so use depends_on to ensure
|
||||
# this is created after any other resources.
|
||||
|
@ -378,12 +378,3 @@ outputs:
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
config_identifier:
|
||||
description: identifier which changes if the node configuration may need re-applying
|
||||
value:
|
||||
list_join:
|
||||
- ','
|
||||
- - {get_attr: [CephStorageDeployment, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSCAData, deploy_stdout]}
|
||||
- {get_attr: [CephStorageExtraConfigPre, deploy_stdout]}
|
||||
- {get_param: UpdateIdentifier}
|
||||
|
@ -8,8 +8,8 @@ parameters:
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
RoleData:
|
||||
type: json
|
||||
@ -26,7 +26,7 @@ resources:
|
||||
servers: {get_param: servers}
|
||||
config: {get_resource: VolumeArtifactsConfig}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
VolumePuppetConfig:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
@ -56,7 +56,7 @@ resources:
|
||||
config: {get_resource: VolumePuppetConfig}
|
||||
input_values:
|
||||
step: 2
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
VolumeDeployment_Step3:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -67,7 +67,7 @@ resources:
|
||||
config: {get_resource: VolumePuppetConfig}
|
||||
input_values:
|
||||
step: 3
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
VolumeDeployment_Step4:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -78,7 +78,7 @@ resources:
|
||||
config: {get_resource: VolumePuppetConfig}
|
||||
input_values:
|
||||
step: 4
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
# Note, this should come last, so use depends_on to ensure
|
||||
# this is created after any other resources.
|
||||
|
@ -379,11 +379,3 @@ outputs:
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
config_identifier:
|
||||
description: identifier which changes if the node configuration may need re-applying
|
||||
value:
|
||||
list_join:
|
||||
- ''
|
||||
- - {get_attr: [BlockStorageDeployment, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSCAData, deploy_stdout]}
|
||||
- {get_param: UpdateIdentifier}
|
||||
|
@ -10,12 +10,12 @@ parameters:
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
RoleData:
|
||||
type: json
|
||||
default: {}
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
|
||||
resources:
|
||||
|
||||
@ -28,7 +28,7 @@ resources:
|
||||
servers: {get_param: servers}
|
||||
config: {get_resource: ComputeArtifactsConfig}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ComputePuppetConfig:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
@ -57,7 +57,7 @@ resources:
|
||||
config: {get_resource: ComputePuppetConfig}
|
||||
input_values:
|
||||
step: 2
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ComputeOvercloudServicesDeployment_Step3:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -68,7 +68,7 @@ resources:
|
||||
config: {get_resource: ComputePuppetConfig}
|
||||
input_values:
|
||||
step: 3
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ComputeOvercloudServicesDeployment_Step4:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -79,7 +79,7 @@ resources:
|
||||
config: {get_resource: ComputePuppetConfig}
|
||||
input_values:
|
||||
step: 4
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
# Note, this should come last, so use depends_on to ensure
|
||||
# this is created after any other resources.
|
||||
|
@ -799,12 +799,3 @@ outputs:
|
||||
description: Heat resource handle for the Nova compute server
|
||||
value:
|
||||
{get_resource: NovaCompute}
|
||||
config_identifier:
|
||||
description: identifier which changes if the node configuration may need re-applying
|
||||
value:
|
||||
list_join:
|
||||
- ','
|
||||
- - {get_attr: [NovaComputeDeployment, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSCAData, deploy_stdout]}
|
||||
- {get_attr: [ComputeExtraConfigPre, deploy_stdout]}
|
||||
- {get_param: UpdateIdentifier}
|
||||
|
@ -10,12 +10,12 @@ parameters:
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
RoleData:
|
||||
type: json
|
||||
default: {}
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
|
||||
resources:
|
||||
|
||||
@ -33,7 +33,7 @@ resources:
|
||||
properties:
|
||||
servers: {get_param: servers}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerPuppetConfig:
|
||||
type: OS::TripleO::ControllerConfig
|
||||
@ -53,7 +53,7 @@ resources:
|
||||
config: {get_resource: ControllerPuppetConfig}
|
||||
input_values:
|
||||
step: 1
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerServicesBaseDeployment_Step2:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -64,7 +64,7 @@ resources:
|
||||
config: {get_resource: ControllerPuppetConfig}
|
||||
input_values:
|
||||
step: 2
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerOvercloudServicesDeployment_Step3:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -75,7 +75,7 @@ resources:
|
||||
config: {get_resource: ControllerPuppetConfig}
|
||||
input_values:
|
||||
step: 3
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerOvercloudServicesDeployment_Step4:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -86,7 +86,7 @@ resources:
|
||||
config: {get_resource: ControllerPuppetConfig}
|
||||
input_values:
|
||||
step: 4
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerOvercloudServicesDeployment_Step5:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -97,7 +97,7 @@ resources:
|
||||
config: {get_resource: ControllerPuppetConfig}
|
||||
input_values:
|
||||
step: 5
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
ControllerPostPuppet:
|
||||
type: OS::TripleO::Tasks::ControllerPostPuppet
|
||||
@ -105,7 +105,7 @@ resources:
|
||||
properties:
|
||||
servers: {get_param: servers}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
# Note, this should come last, so use depends_on to ensure
|
||||
# this is created after any other resources.
|
||||
|
@ -1128,16 +1128,6 @@ outputs:
|
||||
template: "IP:11211"
|
||||
params:
|
||||
IP: {get_attr: [NetIpMap, net_ip_uri_map, {get_param: [ServiceNetMap, MemcachedNetwork]}]}
|
||||
config_identifier:
|
||||
description: identifier which changes if the controller configuration may need re-applying
|
||||
value:
|
||||
list_join:
|
||||
- ','
|
||||
- - {get_attr: [ControllerDeployment, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSCAData, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSData, deploy_stdout]}
|
||||
- {get_attr: [ControllerExtraConfigPre, deploy_stdout]}
|
||||
- {get_param: UpdateIdentifier}
|
||||
tls_key_modulus_md5:
|
||||
description: MD5 checksum of the TLS Key Modulus
|
||||
value: {get_attr: [NodeTLSData, key_modulus_md5]}
|
||||
|
@ -8,12 +8,12 @@ parameters:
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
type: json
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
RoleData:
|
||||
type: json
|
||||
default: {}
|
||||
DeployIdentifier:
|
||||
type: string
|
||||
description: Value which changes if the node configuration may need to be re-applied
|
||||
|
||||
resources:
|
||||
|
||||
@ -26,7 +26,7 @@ resources:
|
||||
servers: {get_param: servers}
|
||||
config: {get_resource: StorageArtifactsConfig}
|
||||
input_values:
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
StoragePuppetConfig:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
@ -56,7 +56,7 @@ resources:
|
||||
config: {get_resource: StoragePuppetConfig}
|
||||
input_values:
|
||||
step: 2
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
StorageRingbuilderDeployment_Step3:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -67,7 +67,7 @@ resources:
|
||||
config: {get_resource: StoragePuppetConfig}
|
||||
input_values:
|
||||
step: 3
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
StorageDeployment_Step4:
|
||||
type: OS::Heat::StructuredDeployments
|
||||
@ -78,7 +78,7 @@ resources:
|
||||
config: {get_resource: StoragePuppetConfig}
|
||||
input_values:
|
||||
step: 4
|
||||
update_identifier: {get_param: NodeConfigIdentifiers}
|
||||
update_identifier: {get_param: DeployIdentifier}
|
||||
|
||||
# Note, this should come last, so use depends_on to ensure
|
||||
# this is created after any other resources.
|
||||
|
@ -413,11 +413,3 @@ outputs:
|
||||
management_ip_address:
|
||||
description: IP address of the server in the management network
|
||||
value: {get_attr: [ManagementPort, ip_address]}
|
||||
config_identifier:
|
||||
description: identifier which changes if the node configuration may need re-applying
|
||||
value:
|
||||
list_join:
|
||||
- ','
|
||||
- - {get_attr: [SwiftStorageHieraDeploy, deploy_stdout]}
|
||||
- {get_attr: [NodeTLSCAData, deploy_stdout]}
|
||||
- {get_param: UpdateIdentifier}
|
||||
|
Loading…
x
Reference in New Issue
Block a user