heat_template_version: 2016-04-08

description: >
  OpenStack Nova Scheduler service configured with Puppet

parameters:
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json

resources:
  NovaBase:
    type: ./nova-base.yaml
    properties:
      EndpointMap: {get_param: EndpointMap}

outputs:
  role_data:
    description: Role data for the Nova Scheduler service.
    value:
      service_name: nova_scheduler
      config_settings:
        map_merge:
          - get_attr: [NovaBase, role_data, config_settings]
          - nova::scheduler::filter::ram_allocation_ratio: '1.0'
      step_config: |
        include tripleo::profile::base::nova::scheduler

heat_template_version: 2016-04-08

description: >
  OpenStack Nova Scheduler service configured with Puppet

parameters:
  EndpointMap:
    default: {}
    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:
    type: ./nova-base.yaml
    properties:
      EndpointMap: {get_param: EndpointMap}

outputs:
  role_data:
    description: Role data for the Nova Scheduler service.
    value:
      service_name: nova_scheduler
      config_settings:
        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

Allow scheduler_available_filter to be customizable
Allow scheduler_available_filter to be customizable

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 <8ffa32a20b3c85702354cad4e4250d070d3be421@redhat.com>
