diff options
author | Clint Byrum <clint@fewbar.com> | 2013-08-15 11:35:56 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2013-08-15 20:26:31 -0700 |
commit | bf7b11120921537f7f0f8c1994ed0ffdf8152220 (patch) | |
tree | f4983495e91827ad69f947bf983bcca3de9513db /nova-compute-instance.yaml | |
parent | 07ac7428976ea5a91c3371529be734df0ef38562 (diff) |
Migrate nova-compute-instance to split Metadata.
The file was using the old 0.0.0.0 method from heat-localip, but it was
missed when converting the other templates to a split Metadata approach
to enable a machine to know its own IP.
Change-Id: I0b117de12416a52950b1c7079f659df8649d67f9
Diffstat (limited to 'nova-compute-instance.yaml')
-rw-r--r-- | nova-compute-instance.yaml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/nova-compute-instance.yaml b/nova-compute-instance.yaml index c7753e82..a3fef086 100644 --- a/nova-compute-instance.yaml +++ b/nova-compute-instance.yaml @@ -70,7 +70,21 @@ Resources: InstanceType: {Ref: InstanceType} KeyName: {Ref: KeyName} Metadata: + os-collect-config: + cfn: + access_key_id: + Ref: ComputeKey + secret_access_key: + Fn::GetAtt: [ ComputeKey, SecretAccessKey ] + stack_name: {Ref: 'AWS::StackName'} + path: NovaCompute0Config.Metadata OpenStack::ImageBuilder::Elements: [ nova-compute ] + NovaCompute0Config: + Type: AWS::AutoScaling::LaunchConfiguration + Properties: + InstanceType: '0' + ImageId: '0' + Metadata: os-collect-config: cfn: access_key_id: @@ -78,7 +92,7 @@ Resources: secret_access_key: Fn::GetAtt: [ ComputeKey, SecretAccessKey ] stack_name: {Ref: 'AWS::StackName'} - path: NovaCompute0.Metadata + path: NovaCompute0Config.Metadata nova: compute_driver: {Ref: NovaComputeDriver} compute_libvirt_type: {Ref: NovaComputeLibvirtType} @@ -92,7 +106,10 @@ Resources: host: {Ref: NeutronHost} ovs_db: {Ref: NeutronDSN} ovs: - local_ip: 0.0.0.0 + local_ip: + Fn::GetAtt: + - NovaCompute0 + - PrivateIp tenant_network_type: {Ref: NeutronNetworkType} network_vlan_ranges: {Ref: NeutronNetworkVLANRanges} bridge_mappings: {Ref: NeutronBridgeMappings} |