Allow scheduler_available_filter to be customizable
authorkarthik s <ksundara@redhat.com>
Wed, 20 Jul 2016 13:13:08 +0000 (18:43 +0530)
committerkarthik s <ksundara@redhat.com>
Thu, 18 Aug 2016 16:22:31 +0000 (21:52 +0530)
This patch allows the operator to override the default values of
scheduler_available_filters, which is required for automating
the deployments using SR-IOV feature.

Change-Id: Ib68943c4c6926694b7d99e8f9d6135641048e04a
Implements: blueprint tripleo-sriov
Signed-off-by: karthik s <ksundara@redhat.com>
puppet/services/nova-scheduler.yaml

index bd6e511..28612af 100644 (file)
@@ -9,6 +9,10 @@ parameters:
     description: Mapping of service endpoint -> protocol. Typically set
                  via parameter_defaults in the resource registry.
     type: json
+  NovaSchedulerAvailableFilters:
+    default: []
+    description: List of scheduler available filters
+    type: comma_delimited_list
 
 resources:
   NovaBase:
@@ -25,5 +29,6 @@ outputs:
         map_merge:
           - get_attr: [NovaBase, role_data, config_settings]
           - nova::scheduler::filter::ram_allocation_ratio: '1.0'
+            nova::scheduler::filter::scheduler_available_filters: {get_param: NovaSchedulerAvailableFilters}
       step_config: |
         include tripleo::profile::base::nova::scheduler