Make Swift replica count configurable.
authorRobert Collins <rbtcollins@hp.com>
Wed, 13 Aug 2014 00:02:52 +0000 (12:02 +1200)
committerRobert Collins <rbtcollins@hp.com>
Wed, 13 Aug 2014 00:12:58 +0000 (12:12 +1200)
Using 1 is thoroughly non-HA :)

This is the HOT version of this patch.

Change-Id: Ic96bcdc03dacb9650520bd9ac1ce3805c6dac2fa
implements: blueprint tripleo-icehouse-ha-production-configuration

swift-deploy.yaml
swift-source.yaml
swift-storage-source.yaml

index eaa0131..c4fd757 100644 (file)
@@ -10,6 +10,10 @@ parameters:
     description: The password for the swift service account, used by the swift proxy services.
     type: string
     hidden: true
+  SwiftReplicas:
+    type: number
+    default: 1
+    description: How many replicas to use in the swift rings.
 resources:
   controller0Swift:
     type: OS::Heat::StructuredDeployment
@@ -47,3 +51,4 @@ resources:
                         - ''
                         - - {get_attr: [controller0, networks, ctlplane, 0]}
                           - ':11211'
+        swift_replicas: { get_param: SwiftReplicas}
index 9c7b04f..1a5a04f 100644 (file)
@@ -9,7 +9,7 @@ resources:
           hash: { get_input: swift_hash_suffix }
           part-power: 10
           proxy-memcache: { get_input: swift_proxy_memcache }
-          replicas: 1
+          replicas: {get_input: swift_replicas }
           service-password: { get_input: swift_password }
         neutron:
           ovs:
index fbedb0b..224e771 100644 (file)
@@ -4,6 +4,10 @@ parameters:
   SwiftStorageImage:
     type: string
     default: overcloud-swift-storage
+  SwiftReplicas:
+    type: number
+    default: 1
+    description: How many replicas to use in the swift rings.
   OvercloudSwiftStorageFlavor:
     default: baremetal
     description: Flavor for Swift storage nodes to request when deploying.
@@ -75,3 +79,4 @@ resources:
                         - ''
                         - - {get_attr: [controller0, networks, ctlplane, 0]}
                           - ':11211'
+        swift_replicas: { get_param: SwiftReplicas}