o Adds the required swift metadata (in swift-source.yaml).
o Sets up glance to use the swift backend on the overcloud.
o Sets up glance to use the file backend on the undercloud and seed,
i.e. maintain the Status quo.
Change-Id: I4a70ffbf9c51f1fea5cfc84d8718d3d30d36b3f2
-overcloud.yaml: overcloud-source.yaml nova-compute-instance.yaml
- python merge.py $< > $@.tmp
+overcloud.yaml: overcloud-source.yaml nova-compute-instance.yaml swift-source.yaml
+ # $^ won't work here because we want to list nova-compute-instance.yaml as
+ # a prerequisite but don't want to pass it into merge.py
+ python merge.py overcloud-source.yaml swift-source.yaml > $@.tmp
mv $@.tmp $@
undercloud-vm-tuskar.yaml: undercloud-vm.yaml tuskar-source.yaml
rabbit:
host: {Ref: RabbitHost}
password: {Ref: RabbitPassword}
- swift:
- store_user: ''
- store_key: ''
- networks
db-password: unset
glance:
+ backend: swift
db: mysql://glance:unset@localhost/glance
host:
Fn::Select:
- networks
service-password:
Ref: GlancePassword
+ swift-store-user: service:glance
+ swift-store-key:
+ Ref: GlancePassword
heat:
admin_password:
Ref: HeatPassword
--- /dev/null
+Description: 'Swift-common: Openstack object storage common configurations'
+Parameters:
+ SwiftHashSuffix:
+ Default: unset
+ Description: A random string to be used as a salt when hashing to determine mappings in the ring.
+ Type: String
+ NoEcho: true
+ SwiftPassword:
+ Default: unset
+ Description: The password for the swift service account, used by the swift proxy services.
+ Type: String
+ NoEcho: true
+Resources:
+ notcomputeConfig:
+ Type: AWS::AutoScaling::LaunchConfiguration
+ Metadata:
+ swift:
+ devices:
+ Fn::Join:
+ - ''
+ - - 'r1z1-'
+ - Fn::Select:
+ - 0
+ - Fn::Select:
+ - 'ctlplane'
+ - Fn::GetAtt:
+ - notcompute
+ - networks
+ - ':%PORT%/d1'
+ hash:
+ Ref: SwiftHashSuffix
+ part-power: 10
+ replicas: 1
+ service-password:
+ Ref: SwiftPassword
volume_size_mb: '5000'
db-password: unset
glance:
+ backend: file
db: mysql://glance:unset@localhost/glance
host: 127.0.0.1
service-password:
volume_size_mb: '5000'
db-password: unset
glance:
+ backend: file
db: mysql://glance:unset@localhost/glance
host: 127.0.0.1
service-password: