2016-06-10 17:43:29 +02:00
|
|
|
heat_template_version: 2016-04-08
|
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Nova Compute service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-06-10 17:43:29 +02:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-07-21 11:16:59 +02:00
|
|
|
NovaRbdPoolName:
|
|
|
|
default: vms
|
|
|
|
type: string
|
|
|
|
CephClientUserName:
|
|
|
|
default: openstack
|
|
|
|
type: string
|
2016-08-10 17:35:30 -04:00
|
|
|
CinderEnableNfsBackend:
|
|
|
|
default: false
|
|
|
|
description: Whether to enable or not the NFS backend for Cinder
|
|
|
|
type: boolean
|
|
|
|
CinderEnableRbdBackend:
|
|
|
|
default: false
|
|
|
|
description: Whether to enable or not the Rbd backend for Cinder
|
|
|
|
type: boolean
|
|
|
|
NovaEnableRbdBackend:
|
|
|
|
default: false
|
|
|
|
description: Whether to enable or not the Rbd backend for Nova
|
|
|
|
type: boolean
|
|
|
|
NovaComputeLibvirtVifDriver:
|
|
|
|
default: ''
|
|
|
|
description: Libvirt VIF driver configuration for the network
|
|
|
|
type: string
|
2016-06-10 17:43:29 +02:00
|
|
|
|
|
|
|
resources:
|
|
|
|
NovaBase:
|
|
|
|
type: ./nova-base.yaml
|
2016-06-29 17:30:08 +02:00
|
|
|
properties:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-06-29 17:30:08 +02:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
2016-06-10 17:43:29 +02:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
2016-06-14 17:27:07 -04:00
|
|
|
description: Role data for the Nova Compute service.
|
2016-06-10 17:43:29 +02:00
|
|
|
value:
|
2016-07-28 10:30:10 +01:00
|
|
|
service_name: nova_compute
|
2016-06-10 17:43:29 +02:00
|
|
|
config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [NovaBase, role_data, config_settings]
|
2016-06-14 17:27:07 -04:00
|
|
|
- nova::compute::libvirt::manage_libvirt_services: false
|
2016-07-13 11:29:43 -04:00
|
|
|
# we manage migration in nova common puppet profile
|
2016-06-14 17:27:07 -04:00
|
|
|
nova::compute::libvirt::migration_support: false
|
|
|
|
tripleo::profile::base::nova::manage_migration: true
|
|
|
|
tripleo::profile::base::nova::nova_compute_enabled: true
|
2016-07-21 11:16:59 +02:00
|
|
|
nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
|
|
|
|
nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
|
2016-08-10 17:35:30 -04:00
|
|
|
tripleo::profile::base::nova::compute::cinder_nfs_backend: {get_param: CinderEnableNfsBackend}
|
|
|
|
rbd_persistent_storage: {get_param: CinderEnableRbdBackend}
|
2016-07-21 11:16:59 +02:00
|
|
|
nova::compute::rbd::rbd_keyring:
|
|
|
|
list_join:
|
|
|
|
- '.'
|
|
|
|
- - 'client'
|
|
|
|
- {get_param: CephClientUserName}
|
2016-07-13 11:29:43 -04:00
|
|
|
nova::compute::rbd::libvirt_rbd_secret_uuid: '"%{hiera(\"ceph::profile::params::fsid\")}"'
|
|
|
|
nova::compute::instance_usage_audit: true
|
|
|
|
nova::compute::instance_usage_audit_period: 'hour'
|
2016-08-10 17:35:30 -04:00
|
|
|
nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
|
|
|
|
# TUNNELLED mode provides a security enhancement when using shared
|
|
|
|
# storage but is not supported when not using shared storage.
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1301986#c12
|
|
|
|
# In future versions of QEMU (2.6, mostly), danpb's native
|
|
|
|
# encryption work will obsolete the need to use TUNNELLED transport
|
|
|
|
# mode.
|
|
|
|
nova::migration::live_migration_tunnelled: {get_param: NovaEnableRbdBackend}
|
2016-07-13 11:29:43 -04:00
|
|
|
# Changing the default from 512MB. The current templates can not deploy
|
|
|
|
# overclouds with swap. On an idle compute node, we see ~1024MB of RAM
|
|
|
|
# used. 2048 is suggested to account for other possible operations for
|
|
|
|
# example openvswitch.
|
|
|
|
nova::compute::reserved_host_memory: 2048
|
2016-08-10 17:35:30 -04:00
|
|
|
nova::compute::neutron::libvirt_vif_driver: {get_param: NovaComputeLibvirtVifDriver}
|
|
|
|
|
2016-06-10 17:43:29 +02:00
|
|
|
step_config: |
|
2016-06-14 17:27:07 -04:00
|
|
|
# TODO(emilien): figure how to deal with libvirt profile.
|
2016-08-10 17:35:30 -04:00
|
|
|
# We'll probably treat it like we do with Neutron plugins.
|
2016-06-14 17:27:07 -04:00
|
|
|
# Until then, just include it in the default nova-compute role.
|
|
|
|
include tripleo::profile::base::nova::compute::libvirt
|