1 heat_template_version: pike
4 Libvirt service configured with Puppet
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.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
29 NovaComputeLibvirtType:
32 LibvirtEnabledPerfEvents:
33 type: comma_delimited_list
35 description: This is a performance event list which could be used as monitor.
36 For example - ``enabled_perf_events = cmt, mbml, mbmt``
37 The supported events list can be found in
38 https://libvirt.org/html/libvirt-libvirt-domain.html ,
39 which you may need to search key words ``VIR_PERF_PARAM_*``
40 MonitoringSubscriptionNovaLibvirt:
41 default: 'overcloud-nova-libvirt'
46 UseTLSTransportForLiveMigration:
49 description: If set to true and if EnableInternalTLS is enabled, it will
50 set the libvirt URI's transport to tls and configure the
51 relevant keys for libvirt.
53 default: '/etc/ipa/ca.crt'
55 description: Specifies the default CA cert to use if TLS is used for
56 services in the internal network.
60 description: This specifies the CA certificate to use for TLS in libvirt.
61 This file will be symlinked to the default CA path in libvirt,
62 which is /etc/pki/CA/cacert.pem. Note that due to limitations
63 GNU TLS, which is the TLS backend for libvirt, the file must
64 be less than 65K (so we can't use the system's CA bundle).
65 This parameter should be used if the default (which comes from
66 the InternalTLSCAFile parameter) is not desired. The current
67 default reflects TripleO's default CA, which is FreeIPA.
68 It will only be used if internal TLS is enabled.
72 use_tls_for_live_migration:
75 - {get_param: EnableInternalTLS}
78 - {get_param: UseTLSTransportForLiveMigration}
81 libvirt_specific_ca_unset:
83 - {get_param: LibvirtCACert}
88 type: ./nova-base.yaml
90 ServiceNetMap: {get_param: ServiceNetMap}
91 DefaultPasswords: {get_param: DefaultPasswords}
92 EndpointMap: {get_param: EndpointMap}
93 RoleName: {get_param: RoleName}
94 RoleParameters: {get_param: RoleParameters}
98 description: Role data for the Libvirt service.
100 service_name: nova_libvirt
101 monitoring_subscription: {get_param: MonitoringSubscriptionNovaLibvirt}
104 - get_attr: [NovaBase, role_data, config_settings]
105 # we include ::nova::compute::libvirt::services in nova/libvirt profile
106 - nova::compute::libvirt::manage_libvirt_services: false
107 # we manage migration in nova common puppet profile
108 nova::compute::libvirt::migration_support: false
109 tripleo::profile::base::nova::manage_migration: true
110 tripleo::profile::base::nova::libvirt_enabled: true
111 nova::compute::libvirt::services::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
112 nova::compute::libvirt::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
113 nova::compute::libvirt::libvirt_enabled_perf_events: {get_param: LibvirtEnabledPerfEvents}
114 nova::compute::libvirt::qemu::configure_qemu: true
115 nova::compute::libvirt::qemu::max_files: 32768
116 nova::compute::libvirt::qemu::max_processes: 131072
117 nova::compute::libvirt::vncserver_listen: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
118 tripleo.nova_libvirt.firewall_rules:
127 - use_tls_for_live_migration
129 generate_service_certificates: true
130 tripleo::profile::base::nova::libvirt_tls: true
131 nova::migration::libvirt::live_migration_inbound_addr:
134 "%{hiera('fqdn_$NETWORK')}"
136 $NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
137 tripleo::certmonger::ca::libvirt::origin_ca_pem:
139 - libvirt_specific_ca_unset
140 - get_param: InternalTLSCAFile
141 - get_param: LibvirtCACert
142 tripleo::certmonger::libvirt_dirs::certificate_dir: '/etc/pki/libvirt'
143 tripleo::certmonger::libvirt_dirs::key_dir: '/etc/pki/libvirt/private'
144 libvirt_certificates_specs:
146 service_certificate: '/etc/pki/libvirt/servercert.pem'
147 service_key: '/etc/pki/libvirt/private/serverkey.pem'
150 template: "%{hiera('fqdn_NETWORK')}"
152 NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
155 template: "libvirt/%{hiera('fqdn_NETWORK')}"
157 NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
159 service_certificate: '/etc/pki/libvirt/clientcert.pem'
160 service_key: '/etc/pki/libvirt/private/clientkey.pem'
163 template: "%{hiera('fqdn_NETWORK')}"
165 NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
168 template: "libvirt/%{hiera('fqdn_NETWORK')}"
170 NETWORK: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}
173 include tripleo::profile::base::nova::libvirt
176 - use_tls_for_live_migration
179 network: {get_param: [ServiceNetMap, NovaLibvirtNetwork]}