2016-06-10 17:43:29 +02:00
|
|
|
heat_template_version: 2016-04-08
|
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Nova Compute service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
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-06-10 17:43:29 +02:00
|
|
|
|
|
|
|
resources:
|
|
|
|
NovaBase:
|
|
|
|
type: ./nova-base.yaml
|
2016-06-29 17:30:08 +02:00
|
|
|
properties:
|
|
|
|
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}
|
|
|
|
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'
|
|
|
|
# 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-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.
|
|
|
|
# We'll probably threat it like we do with Neutron plugins.
|
|
|
|
# Until then, just include it in the default nova-compute role.
|
|
|
|
include tripleo::profile::base::nova::compute::libvirt
|