Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / nova-scheduler.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Nova Scheduler service configured with Puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   NovaSchedulerAvailableFilters:
34     default: []
35     description: List of scheduler available filters
36     type: comma_delimited_list
37   NovaSchedulerDefaultFilters:
38     type: comma_delimited_list
39     default: []
40     description: >
41       An array of filters used by Nova to filter a node.These filters will be
42       applied in the order they are listed, so place your most restrictive
43       filters first to make the filtering process more efficient.
44   MonitoringSubscriptionNovaScheduler:
45     default: 'overcloud-nova-scheduler'
46     type: string
47   NovaSchedulerLoggingSource:
48     type: json
49     default:
50       tag: openstack.nova.scheduler
51       path: /var/log/nova/nova-scheduler.log
52   NovaSchedulerDiscoverHostsInCellsInterval:
53     type: number
54     default: -1
55     description: >
56       This value controls how often (in seconds) the scheduler should
57       attempt to discover new hosts that have been added to cells.
58       The default value of -1 disables the periodic task completely.
59       It is recommended to set this parameter for deployments using Ironic.
60
61 resources:
62   NovaBase:
63     type: ./nova-base.yaml
64     properties:
65       ServiceData: {get_param: ServiceData}
66       ServiceNetMap: {get_param: ServiceNetMap}
67       DefaultPasswords: {get_param: DefaultPasswords}
68       EndpointMap: {get_param: EndpointMap}
69       RoleName: {get_param: RoleName}
70       RoleParameters: {get_param: RoleParameters}
71
72 outputs:
73   role_data:
74     description: Role data for the Nova Scheduler service.
75     value:
76       service_name: nova_scheduler
77       monitoring_subscription: {get_param: MonitoringSubscriptionNovaScheduler}
78       logging_source: {get_param: NovaSchedulerLoggingSource}
79       logging_groups:
80         - nova
81       config_settings:
82         map_merge:
83           - get_attr: [NovaBase, role_data, config_settings]
84           - nova::ram_allocation_ratio: '1.0'
85             nova::scheduler::filter::scheduler_available_filters: {get_param: NovaSchedulerAvailableFilters}
86             nova::scheduler::filter::scheduler_default_filters: {get_param: NovaSchedulerDefaultFilters}
87             nova::scheduler::discover_hosts_in_cells_interval: {get_param: NovaSchedulerDiscoverHostsInCellsInterval}
88       step_config: |
89         include tripleo::profile::base::nova::scheduler
90       upgrade_tasks:
91         - name: Stop nova_scheduler service
92           tags: step1
93           service: name=openstack-nova-scheduler state=stopped