bcc3a232907749ba8acf30daf7223a71f2ba701f
[apex-tripleo-heat-templates.git] / puppet / services / nova-compute.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova Compute service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   NovaRbdPoolName:
13     default: vms
14     type: string
15   CephClientUserName:
16     default: openstack
17     type: string
18
19 resources:
20   NovaBase:
21     type: ./nova-base.yaml
22     properties:
23       EndpointMap: {get_param: EndpointMap}
24
25 outputs:
26   role_data:
27     description: Role data for the Nova Compute service.
28     value:
29       service_name: nova_compute
30       config_settings:
31         map_merge:
32           - get_attr: [NovaBase, role_data, config_settings]
33           - nova::compute::libvirt::manage_libvirt_services: false
34             # we manage migration in nova common puppet profile
35             nova::compute::libvirt::migration_support: false
36             tripleo::profile::base::nova::manage_migration: true
37             tripleo::profile::base::nova::nova_compute_enabled: true
38             nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
39             nova::compute::rbd::libvirt_rbd_user: {get_param: CephClientUserName}
40             nova::compute::rbd::rbd_keyring:
41               list_join:
42               - '.'
43               - - 'client'
44                 - {get_param: CephClientUserName}
45             nova::compute::rbd::libvirt_rbd_secret_uuid: '"%{hiera(\"ceph::profile::params::fsid\")}"'
46             nova::compute::instance_usage_audit: true
47             nova::compute::instance_usage_audit_period: 'hour'
48             # Changing the default from 512MB. The current templates can not deploy
49             # overclouds with swap. On an idle compute node, we see ~1024MB of RAM
50             # used. 2048 is suggested to account for other possible operations for
51             # example openvswitch.
52             nova::compute::reserved_host_memory: 2048
53       step_config: |
54         # TODO(emilien): figure how to deal with libvirt profile.
55         # We'll probably threat it like we do with Neutron plugins.
56         # Until then, just include it in the default nova-compute role.
57         include tripleo::profile::base::nova::compute::libvirt