Bump template version for all templates to "ocata"
[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   MonitoringSubscriptionNovaLibvirt:
25     default: 'overcloud-nova-libvirt'
26     type: string
27
28 resources:
29   NovaBase:
30     type: ./nova-base.yaml
31     properties:
32       ServiceNetMap: {get_param: ServiceNetMap}
33       DefaultPasswords: {get_param: DefaultPasswords}
34       EndpointMap: {get_param: EndpointMap}
35
36 outputs:
37   role_data:
38     description: Role data for the Libvirt service.
39     value:
40       service_name: nova_libvirt
41       monitoring_subscription: {get_param: MonitoringSubscriptionNovaLibvirt}
42       config_settings:
43         map_merge:
44           - get_attr: [NovaBase, role_data, config_settings]
45           # we include ::nova::compute::libvirt::services in nova/libvirt profile
46           - nova::compute::libvirt::manage_libvirt_services: false
47           # we manage migration in nova common puppet profile
48             nova::compute::libvirt::migration_support: false
49             tripleo::profile::base::nova::manage_migration: true
50             tripleo::profile::base::nova::libvirt_enabled: true
51             nova::compute::libvirt::services::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
52             nova::compute::libvirt::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
53             tripleo.nova_libvirt.firewall_rules:
54               '200 nova_libvirt':
55                 dport:
56                   - 16509
57                   - 16514
58                   - '49152-49215'
59                   - '5900-5999'
60
61       step_config: |
62         include tripleo::profile::base::nova::libvirt