Merge "Add release notes for Manila/CephFS with managed Ceph"
[apex-tripleo-heat-templates.git] / puppet / services / nova-libvirt.yaml
1 heat_template_version: ocata
2
3 description: >
4   Libvirt service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NovaComputeLibvirtType:
22     type: string
23     default: kvm
24   LibvirtEnabledPerfEvents:
25     type: comma_delimited_list
26     default: []
27     description: This is a performance event list which could be used as monitor.
28                  For example - ``enabled_perf_events = cmt, mbml, mbmt``
29                  The supported events list can be found in
30                  https://libvirt.org/html/libvirt-libvirt-domain.html ,
31                  which you may need to search key words ``VIR_PERF_PARAM_*``
32   MonitoringSubscriptionNovaLibvirt:
33     default: 'overcloud-nova-libvirt'
34     type: string
35
36 resources:
37   NovaBase:
38     type: ./nova-base.yaml
39     properties:
40       ServiceNetMap: {get_param: ServiceNetMap}
41       DefaultPasswords: {get_param: DefaultPasswords}
42       EndpointMap: {get_param: EndpointMap}
43
44 outputs:
45   role_data:
46     description: Role data for the Libvirt service.
47     value:
48       service_name: nova_libvirt
49       monitoring_subscription: {get_param: MonitoringSubscriptionNovaLibvirt}
50       config_settings:
51         map_merge:
52           - get_attr: [NovaBase, role_data, config_settings]
53           # we include ::nova::compute::libvirt::services in nova/libvirt profile
54           - nova::compute::libvirt::manage_libvirt_services: false
55           # we manage migration in nova common puppet profile
56             nova::compute::libvirt::migration_support: false
57             tripleo::profile::base::nova::manage_migration: true
58             tripleo::profile::base::nova::libvirt_enabled: true
59             nova::compute::libvirt::services::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
60             nova::compute::libvirt::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
61             nova::compute::libvirt::libvirt_enabled_perf_events: {get_param: LibvirtEnabledPerfEvents}
62             nova::compute::libvirt::qemu::configure_qemu: true
63             nova::compute::libvirt::qemu::max_files: 32768
64             nova::compute::libvirt::qemu::max_processes: 131072
65             nova::compute::libvirt::vncserver_listen: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
66             tripleo.nova_libvirt.firewall_rules:
67               '200 nova_libvirt':
68                 dport:
69                   - 16509
70                   - 16514
71                   - '49152-49215'
72                   - '5900-5999'
73
74       step_config: |
75         include tripleo::profile::base::nova::libvirt