Switch net-config templates to use OS::stack_id

This patch removes the custom config_id outputs and replaces
it with OS::stack_id which allows us to just call get_resource
in the parent stack.

The motivation for this change is we'll be adding more os-net-config
templates and it would be nice to take advantage of this newer
template feature.

Change-Id: I6fcb26024b94420779b86766e16d8a24210c4f8e
This commit is contained in:
Dan Prince 2015-05-19 12:19:52 -07:00
parent cfdd314564
commit e38f7cae7d
13 changed files with 19 additions and 22 deletions

View File

@ -64,7 +64,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: CephStorage}
CephStorageDeployment:

View File

@ -136,7 +136,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: BlockStorage}
BlockStorageDeployment:

View File

@ -290,7 +290,7 @@ resources:
type: OS::TripleO::SoftwareDeployment
properties:
signal_transport: NO_SIGNAL
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: NovaCompute}
input_values:
bridge_name: {get_param: NeutronPhysicalBridge}

View File

@ -475,7 +475,7 @@ resources:
type: OS::TripleO::SoftwareDeployment
properties:
signal_transport: NO_SIGNAL
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: Controller}
input_values:
bridge_name: br-ex

View File

@ -60,7 +60,6 @@ resources:
name: nic2
outputs:
config_id:
description: The ID of the OsNetConfigImpl resource.
value:
{get_resource: OsNetConfigImpl}
OS::stack_id:
description: The OsNetConfigImpl resource.
value: {get_resource: OsNetConfigImpl}

View File

@ -53,7 +53,6 @@ resources:
primary: true
outputs:
config_id:
description: The ID of the OsNetConfigImpl resource.
value:
{get_resource: OsNetConfigImpl}
OS::stack_id:
description: The OsNetConfigImpl resource.
value: {get_resource: OsNetConfigImpl}

View File

@ -34,7 +34,6 @@ resources:
config:
outputs:
config_id:
description: The ID of the OsNetConfigImpl resource.
value:
{get_resource: OsNetConfigImpl}
OS::stack_id:
description: The OsNetConfigImpl resource.
value: {get_resource: OsNetConfigImpl}

View File

@ -64,7 +64,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: CephStorage}
CephStorageDeployment:

View File

@ -148,7 +148,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: BlockStorage}
BlockStorageDeployment:

View File

@ -305,7 +305,7 @@ resources:
type: OS::TripleO::SoftwareDeployment
properties:
signal_transport: NO_SIGNAL
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: NovaCompute}
input_values:
bridge_name: {get_param: NeutronPhysicalBridge}

View File

@ -496,7 +496,7 @@ resources:
type: OS::TripleO::SoftwareDeployment
properties:
signal_transport: NO_SIGNAL
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: Controller}
input_values:
bridge_name: br-ex

View File

@ -93,7 +93,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: SwiftStorage}
SwiftStorageHieraConfig:

View File

@ -141,7 +141,7 @@ resources:
NetworkDeployment:
type: OS::TripleO::SoftwareDeployment
properties:
config: {get_attr: [NetworkConfig, config_id]}
config: {get_resource: NetworkConfig}
server: {get_resource: SwiftStorage}
SwiftStorageDeploy: